wamp You don't have permission to access / on this server等问题的解决.
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了wamp You don't have permission to access / on this server等问题的解决.,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1671字,纯文字阅读大概需要3分钟。
内容图文

安装完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.
5、最后发现是没有删掉httpd-vhosts.conf文件中的这段代码导致的:
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "c:/Apache23/docs/dummy-host.example.com"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
删掉或者注释掉这段代码,再运行localhost就没有问题了。
6、localhost运行好使了,但运行localhost:8080却有新的问题:
Forbidden
You don‘t have permission to access /index.phpon this server.
7、然后也是找了很多,多是说什么allow from all等等的问题。但无论我怎么设置都是这个问题。
几经波折,发现把Options Indexes FollowSymLinks 后面添加上 ExecCGI就好使了。
<VirtualHost *:8080>
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>
on this server等问题的解决.' ref='nofollow'>wamp You don't have permission to access / on this server等问题的解决.
原文:http://www.cnblogs.com/lonelyxmas/p/4286739.html
内容总结
以上是互联网集市为您收集整理的wamp You don't have permission to access / on this server等问题的解决.全部内容,希望文章能够帮你解决wamp You don't have permission to access / on this server等问题的解决.所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。