http://localhost访问显示403 fobidden

2025-04-07 10:48:35

1、增加虚拟主机配置后访问localhost出现forbidden

http://localhost访问显示403 fobidden

2、查看apache配置文件是否设置正确

http://localhost访问显示403 fobidden
http://localhost访问显示403 fobidden

3、查看虚拟主机洧粽袄淖配置文件,打开httpd-vhosts.conf,发现localhost所在的主机目录里的servername未进行相应更改

http://localhost访问显示403 fobidden
http://localhost访问显示403 fobidden

4、将上述的错误的servername配置为localhost

http://localhost访问显示403 fobidden
http://localhost访问显示403 fobidden

5、重启服务器,在浏览器地址栏输入localhost,显示wamp首页,问题解决

http://localhost访问显示403 fobidden
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢