FIX mod_rewrite: could not init rewrite log lock in child

Ran into this issue a couple of times already, duplicating it here so I dont' have to go dig for it again:

Error:

[crit] (2)No such file or directory: mod_rewrite: could not init rewrite log lock in child

Change This:

RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]

To this:

RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 0

Original reference is here

Share on: TwitterFacebookGoogle+Email

Comments !