Wamp2.5(Apache2.4.9)外网访问403(Forbidden)错误

    xiaoxiao2021-03-25  17

    1.打开httpd.conf文件(路径为:wamp\bin\apache\apache2.4.9\conf\httpd.conf) 

    2.将“httpd.conf”下240行处的:

    <Directory /> AllowOverride none Require all denied </Directory> 修改为

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

    3.将“httpd.conf”下280行处的:

    # onlineoffline tag - don't remove Require local </Directory> 修改为:

    # onlineoffline tag - don't remove Require local Require all granted </Directory> 实际上就是在“Require local”下面增加一条配置“Require all granted”,保存后退出 4.重启Wmapserver

    转载请注明原文地址: https://ju.6miu.com/read-200225.html

    最新回复(0)