.htaccess: LogLevel is not allowed here

I want to see how my .htaccess file works. I introduced the LogLevel directive into 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.

+6
source share
1 answer

The log level will not work in the .htacesss file, set this config to the apache configuration file.

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

 LogLevel warn mod_rewrite.c:trace4 
+5
source

All Articles