WAMP Server允许外网访问

1、修改httpd.conf文件:

在244行左右,将:

    
        AllowOverride none
        Require all denied
    

 改为:

      
        AllowOverride none  
        #Require all denied  
        Require all granted  
     

 

在280行左右,在 Require local 后面加上一句 Require all granted

  即:

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

 

2、修改httpd-vhosts文件。

找到 Require local,并用“Require all granted”代替它,保存

 参考:

https://blog.csdn.net/Albert_1000/article/details/54849470

https://blog.csdn.net/j_enjoy/article/details/52299801

你可能感兴趣的:(小经验)