今天访问一apache虚拟主机提示页面访问权限出错, 查看错误日志如下:
# tail -4 nod32.aease.org-error_log
[Wed Jul 08 11:41:23 2009] [error] [client 192.168.100.11] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/html/nod32/v3/update.ver
[Wed Jul 08 11:41:33 2009] [error] [client 192.168.100.11] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/html/nod32/v3/update.ver
[Wed Jul 08 11:46:27 2009] [error] [client 192.168.100.11] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/html/nod32/v3/update.ver
解决方法:
在apache配置文件或虚拟主机网站目录下.htaccess文件中修改或增加如下Options选项
Options +FollowSymLinks