Apache配置虚拟域名localhost遇到的错误
在Apache下vhosts及C盘hosts中都配置好后,提示关于You don't have permission to access the requested directory.这类目录错误。先看你配置的localhost是否在环境目录之外。
若是,则在httpd.conf中找到含有 AllowOverride None 的这一段。并改为
- <span style="font-size: x-small;"># 允许指向外部的目录进行访问
- <Directory />
- Options Indexes FollowSymLinks
- AllowOverride None
- </Directory></span>