Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.htaccess: LogLevel not allowed here

Tags:

apache

I want to see how my .htaccess file works. I put a LogLevel directive in it,

<IfModule mod_rewrite.c>
LogLevel alert rewrite:trace3
...

But then in my httpd log file, I see:

.htaccess: LogLevel not allowed here

How do I debug my .htaccess file?

Thanks.

like image 969
ericj Avatar asked Apr 14 '14 07:04

ericj


1 Answers

Log level will not work in .htacesss file put this config in apache config file.

The syntax you are trying, i assume is for apache 2.4 put it as

LogLevel warn mod_rewrite.c:trace4
like image 107
hemc4 Avatar answered Sep 21 '22 14:09

hemc4