Apache配置虚拟域名localhost遇到的错误

在Apache下vhosts及C盘hosts中都配置好后,提示关于You don't have permission to access the requested directory.这类目录错误。先看你配置的localhost是否在环境目录之外。

若是,则在httpd.conf中找到含有 AllowOverride None  这一段。并改为

  1. <span style="font-size: x-small;"># 允许指向外部的目录进行访问  
  2. <Directory />  
  3.     Options Indexes FollowSymLinks  
  4.     AllowOverride None  
  5. </Directory></span>  

 

posted @ 2017-06-16 10:29  自作自受呵  阅读(523)  评论(0编辑  收藏  举报