wampserver配置其它主机访问

版权声明:本文为博主原创文章,转载请联系博主 https://blog.csdn.net/he_and/article/details/84333695

前言

默认情况下,wampserver是只能本机访问的,也就是在localhost(127.0.0.1)上访问,如果需要配置其他主机访问,就需要进行相关配置

修改httpd.conf

一般是在wamp安装目录的 bin\apache\apache2.4.23\conf\httpd.conf
我们也可以直接在鼠标右击wampserver的绿色标志,找到apache下的httpd.conf

0x01
<Directory />
        AllowOverride none
        Require all denied
 </Directory>

改为

 <Directory />  
        AllowOverride none  
        #Require all denied  
        Require all granted  
 </Directory> 

0x02

搜索Require local,然后再后面加一句Require all granted

onlineoffline tag - don't remove
Require local
Require all granted 

修改httpd-vhosts.conf

同样再Require local 后面加一句Require all granted

总结

然后就配置完了,重启下服务就行了

关注web安全

猜你喜欢

转载自blog.csdn.net/he_and/article/details/84333695
今日推荐