原文:wamp You don't have permission to access / on this server等问题的解决.
安装完wamp之后,安装网上的教程设置虚拟路径,出现了问题,同样的问题由不同的原因导致。希望对有些大意的人有帮助。
1、httpd.conf去掉Include conf/extra/httpd-vhosts.conf前面的#。
2、httpd.conf中添加Listen 相应的端口,我的是8080
3、在conf\extra下面的httpd-vhosts.conf文件中添加
<VirtualHost *:8080>
DocumentRoot D:/wamp/www/aa
ServerName localhost
<Directory "d:/wamp/www/aa">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
4、然后调用localhost,就出现下面的错误: Forbidden
You don't have permission to access /on this server.