The eternal fight between admins and computers

(and very often users, as well)

Archive for June, 2008

Mod_Rewrite forbidden 403 with Apache 2.2.8

Posted by rga on June 10, 2008

If you get a message like this and you are sure that your mod_rewrite rules are OK:

Tue Jun 10 11:18:59 2008] [error] [client 192.168.1.85] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/enterprise/file.html

You need to enable FollowSymLinks in the directory that uses mod_rewrite, if not, you will get a friendly 403 error message :)

<Directory /path/of/your/dir>
Options -All
Options +FollowSymLinks
</Directory>

To enable globally, use httpd.conf with

<Directory />
 Options +FollowSymLinks
</Directory>

See you!

Posted in Apache, Debian, Linux, Tips, Web systems | Leave a Comment »