手记

wamp 配置httpd.config

httpd.conf文件更改

1、找到httpd.conf文件位置:

在你的wamp安装目录下的\bin\apache\apache2.4.9\conf文件夹中。此台电脑上我的文件路径为:C:\wamp\bin\apache\apache2.4.9\conf

2、httpd.conf代码更改

①在第240行左右的位置将

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

更改为

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

也就是允许其他请求访问。

②在第280行左右的位置在“Require local”后面加上一句:“Require all granted”

#onlineoffline tag - don't remove  
    Require local  
    Require all granted  
2人推荐
随时随地看视频
慕课网APP