All localhost pages via WAMP blocked?

后端 未结 8 2453
北恋
北恋 2020-12-15 08:15

I\'ve been trying to fix a weird 403 Forbidden error I get when I try to go to one of my pages via WAMP on the localhost.

After adding a rule to open up port 80 via

8条回答
  •  一生所求
    2020-12-15 09:02

    In httpd.conf, find the following sections and ensure they are correct:

    DocumentRoot "C:/wamp/www"

    
        Options None
        AllowOverride None
        Order deny,allow
        Deny from all
    
    
    
        Options None
        AllowOverride All
        Order allow,deny
        Allow from all
    
    

    Those are the settings that I am using in my install and they work fine. Make sure you restart Apache if you make any changes.

    If you continue having issues, please update your original question with your httpd.conf.


    Edit:

    This is kludgey and I'm just grasping at straws here, but try adding a new entry to your vhosts:

    
        DocumentRoot "C:/wamp/www"
        ServerName localhost
    
    

提交回复
热议问题