WebServer多站点配置

来源:互联网 发布:北大青鸟网络培训 编辑:程序博客网 时间:2024/06/07 17:27

打开这个目录下的这个文件----虚拟目录的配置文件

D:\Program\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf


修改成这样:因为.conf是作为一个扩展文件出现的。


# Virtual hosts
Include conf/extra/httpd-vhosts.conf

apache中拒绝其他web访问服务器的资源

C:\Windows\System32\drivers\etc\hosts

127.0.0.1       localhost
127.0.0.1 test01.com
127.0.0.1 test02.com

这里面请求资源