标签:xampp
在xampp新增了一个virtualhost:
<VirtualHost 127.0.0.11:80> DocumentRoot E:/workspacePHP/personalSite ServerName 127.0.0.11:80 </VirtualHost> <Directory "E:/workspacePHP/personalSite"> Options Indexes FollowSymLinks AllowOverride All Order Allow,Deny Allow from all </Directory>
然后访问http://127.0.0.11:80,出现403禁止访问错误,google之后发现httpd.conf文件有默认的配置,
<Directory "D:/xampp/cgi-bin"> AllowOverride All Options None Require all denied </Directory>
修改require为all granted即可。
<Directory "D:/xampp/cgi-bin"> AllowOverride All Options None Require all granted </Directory>
或者在新增的Directory增加require all granted:
<Directory "E:/workspacePHP/personalSite"> Options Indexes FollowSymLinks AllowOverride All Order Allow,Deny Allow from all Require all granted </Directory>
遇到的问题,此处mark一下。
本文出自 “绵之学习笔记” 博客,谢绝转载!
xampp下新增virtualhost出现access denied
标签:xampp
原文地址:http://chenmg.blog.51cto.com/3039876/1713533