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

Forbidden

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

今天本地apache启动后报错,搜索了好多网上的答案,都集中在修改apache中httpd.conf文件

< Directory />

Options FollowSymLinks     

AllowOverride None     

Order deny,allow

Deny from all  //修改为  allow from all

< Directory >

但是根据以上偿试了各种配置都没能解决最后在 Options Indexes MultiViews FollowSymLinks ExecCGI  加了个ExecCGI 重启就好用了

<VirtualHost *:80>

ServerName  localhost

DocumentRoot "E:\phpStudy\WWW"

Options Indexes MultiViews FollowSymLinks ExecCGI

AllowOverride All Order allow,deny

Allow from all

<//VirtualHost>

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容