Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RewriteLog triggers Internal Server Error

I am trying to do some debuging on my rewrite rules and wanted to enable RewriteLog to view how they are interpreted.

but when i activate it i get Internal Server Error heres the line:

RewriteLog "/home/solomongaby/www/project/logs/rewrite.log"

thanks

like image 416
Gabriel Solomon Avatar asked Mar 23 '09 14:03

Gabriel Solomon


3 Answers

The RewriteLog directive is only allowed in the server or virtual host configuration (see Context value).

like image 93
Gumbo Avatar answered Sep 23 '22 14:09

Gumbo


You should post whole string from apache log file to be sure, but i suspect that you've tried to add this string in .htaccess and it gives you error "you can't have rewrite log directive here".

P.s. it's

RewriteLog "/home/solomongaby/www/project/logs/rewrite.log"

and not

RewriteLog "/home/solomongaby/www/project/logs/rewrite.log

Right?

like image 2
Alekc Avatar answered Sep 23 '22 14:09

Alekc


It's most likely a permissions issue. Check Apache's error.log file.

like image 1
Sean Bright Avatar answered Sep 23 '22 14:09

Sean Bright