apache 虚拟主机配置技巧 NameVirtualHost 111.22.33.44 ServerName DocumentRoot /www/sample ServerName DocumentRoot /www/sample2 但是在有些 IP 地址充裕,但是机器资源紧张的环境下,我们可能要把多个域名解析到同一台机器上,其配置方法为: ServerName DocumentRoot /groups/sm
NameVirtualHost 111.22.33.44
ServerName
DocumentRoot /www/sample
ServerName
DocumentRoot /www/sample2
但是在有些 IP 地址充裕,但是机器资源紧张的环境下,我们可能要把多个域名解析到同一台机器上,其配置方法为:
ServerName
DocumentRoot /groups/smallco/www
ServerName
DocumentRoot /groups/baygroup/www
这种方法下,要求机器配置多个 IP 地址。
(作者:徐永久)
本文标题为:apache 虚拟主机配置技巧
基础教程推荐
- windows环境下apache-apollo服务器搭建 2023-09-10
- Apache CarbonData 1.0.0发布及其新特性介绍 2023-09-11
- RFO SIG之openEuler AWS AMI 制作详解 2022-12-28
- Apache Kafka 2.5 稳定版发布,新特性抢先看 2023-09-11
- Centos 安装Django2.1 2023-09-24
- P3 利用Vulnhub复现漏洞 - Apache SSI 远程命令执行漏洞 2023-09-10
- 通过StatefulSet部署有状态服务应用实现方式 2022-10-01
- Centos7 nginx的安装以及开机自启动的设置 2023-09-22
- 为Win2003服务器打造铜墙铁壁的方法步骤 2022-09-01
- Docker容器操作方法详解 2022-11-13
