您的位置:首页 > 运维架构 > Apache

Apache2.2配置虚拟主机

2015-10-16 20:35 609 查看
Apache的配置文件httpd.conf在最后加入下面的代码

<VirtualHost 127.0.0.1:80>

ServerAdmin webmaster@smallco.example.com

DocumentRoot e:/web1

</VirtualHost>

<VirtualHost 127.0.0.2:80>

ServerAdmin webmaster@baygroup.example.org

DocumentRoot e:/web2

</VirtualHost>

参考文档
http://httpd.apache.org/docs/2.2/vhosts/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: