tangtangsimida

C:\phpStudy\Apache\conf httpd.conf中Include conf/extra/httpd-vhosts.conf去掉注释
进入C:\phpStudy\Apache\conf\extra 中httpd-vhosts.conf中配置网址
例子:
<VirtualHost *:80>
DocumentRoot "D:\WWW\ajax"
ServerName www.ajax.com
</VirtualHost>
最后
C:\Windows\System32\drivers\etc\hosts (配置网址)
127.0.0.1 www.ajax.com
重启服务器

C:\phpStudy\Apache\conf httpd.conf(解决网址无法访问)
例子

C:\phpStudy\Apache\conf httpd.conf文件中Include conf/extra/httpd-vhosts.conf注释加上
C:\phpStudy\Apache\conf\extra中httpd-vhosts.conf全部注释

分类:

技术点:

相关文章:

  • 2021-12-04
  • 2021-12-03
  • 2021-12-14
  • 2021-12-14
  • 2021-04-02
  • 2021-09-15
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2021-06-22
  • 2022-12-23
  • 2021-11-23
  • 2021-10-13
  • 2021-09-01
  • 2022-01-02
  • 2022-02-08
相关资源
相似解决方案