配置完虚拟目录,localhost 访问正常。新增的虚拟目录提示:You don’t have permission to access/on this server。
- 找到httpd.conf,用记事本打开httpd.conf,然后将
1 <Directory /> 2 Options FollowSymLinks 3 AllowOverride None 4 Order deny,allow 5 Deny from all 6 </Directory>
改成:
1 <Directory /> 2 Options FollowSymLinks 3 AllowOverride None 4 Order deny,allow 5 Allow from all 6 </Directory>