ubuntu apache2添加虚拟目录总是出现403Forbidden
如题,在httpd.conf加入
Alias /wordpress/ "/home/freewolf/web/wordpress"
<Directory "/home/freewolf/web/wordpress">
Order allow,deny
Allow from all
</Directory>
输入虚拟目录,总是提示403forbidden。
注:localhost正常,/wordpress/已设为777,且该目录下由index.html
------解决方案--------------------
打开apache的配置文件httpd.conf:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
Deny from all -> allow from all