wamp You don't have permission to access / on this server等问题的解决.

Forbidden

You don't have permission to access /index.phpon this server.

然后也是找了很多,多是说什么allow from all等等的问题。

但无论怎么设置都是这个问题。几经波折,

发现把Options Indexes FollowSymLinks 后面添加上 ExecCGI就好使了。

<VirtualHost *:80>  
    DocumentRoot D:/wamp/www/aa  
    ServerName localhost  
    <Directory "d:/wamp/www/aa">  
        Options Indexes FollowSymLinks ExecCGI  
        Order allow,deny  
        Allow from all  
        AllowOverride All  
    </Directory>  
</VirtualHost>  

  

原文地址:https://www.cnblogs.com/qinglin/p/8743393.html