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 地址。
(作者:徐永久)
ServerName
DocumentRoot /www/sample
ServerName
DocumentRoot /www/sample2
但是在有些 IP 地址充裕,但是机器资源紧张的环境下,我们可能要把多个域名解析到同一台机器上,其配置方法为:
ServerName
DocumentRoot /groups/smallco/www
ServerName
DocumentRoot /groups/baygroup/www
这种方法下,要求机器配置多个 IP 地址。
(作者:徐永久)
标签:
Apache,虚拟主机
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
内蒙古资源网 Copyright www.nmgbbs.com
暂无“apache 虚拟主机配置技巧”评论...