Apache2.2配置虚拟主机

来源:互联网 发布:bbc有声双语新闻软件 编辑:程序博客网 时间:2024/04/30 23:48

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/

0 0