Link to home
Start Free TrialLog in
Avatar of bsysd
bsysd

asked on

Why do I get "RewriteLog not allowed here" when I try to start Apache

I am trying to use mod_rewrite in Apache. When I try to turn on rewrite logging I get the "Rewritelog not allowed here" message.

I am running multiple virtual hosts and this is the vhosts file for host in question:
AddHandler fcgid-script .php .php5
SuexecUserGroup proman psacln
<Directory /var/<...>/httpdocs>
     FCGIWrapper /var/<...>/bin/php5 .php
     FCGIWrapper /var/<...>/bin/php5 .php5
     Options +ExecCGI
     allow from all

     RewriteEngine On    

     RewriteLog "/var/log/httpd/promanage_rewrite.log" # this is the line referenced in the error message.
     RewriteLogLevel 9

     RewriteRule ^/js/analytics\.js$ lytics.php [QSA,L]

</Directory>

I have tried to put the log file in various places and nothing changes.
I have duplicated the permissions of other log files in the system to no avail.

If more info is needed, let me know.

ASKER CERTIFIED SOLUTION
Avatar of John Mc Hale
John Mc Hale
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In particular, see the Context section at the following page http://httpd.apache.org/docs/trunk/mod/mod_rewrite.html#rewritelog
Avatar of bsysd
bsysd

ASKER

Thanks fredthered. That got the server started and the logging turned on.