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

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

WebServer多站点配置

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

WebServer多站点配置
# 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

这里面请求资源

相关文章:

  • 2021-07-28
  • 2021-06-09
  • 2021-05-31
  • 2022-01-07
  • 2021-07-19
猜你喜欢
  • 2021-11-05
  • 2021-11-18
  • 2021-08-28
  • 2021-07-07
  • 2021-11-17
  • 2021-05-01
  • 2021-10-11
相关资源
相似解决方案