Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to enable mod_rewrite detailed logging at the trace3 log level, as described in man.

I've put this line in my conf:

LogLevel alert rewrite:trace3

However I'm getting this error:

Syntax error on line 6 of /etc/apache2/sites-enabled/"my_site": LogLevel takes one argument, Level of verbosity in error logging

My Apache version is: Apache/2.2.17 (Ubuntu)

This is excerption from my conf file:

<VirtualHost 10.10.10.14:80>
    ServerName my_site <br>
    DocumentRoot "/data/website/php./web" <br>
    ErrorLog "/data/website/logs/error.log <br>
    CustomLog "/data/website/logs/access.log combined <br>
    LogLevel alert rewrite:trace3 <br>
</VirtualHost>

Please, help me to correct LogLevel statement. Thanks.

share|improve this question

1 Answer 1

You're looking at the wrong documentation!

RewriteLog

Those familiar with earlier versions of mod_rewrite will no doubt be looking for the RewriteLog and RewriteLogLevel directives. This functionality has been completely replaced by the new per-module logging configuration mentioned above

You need to look at the Apache 2.2 documentation and use the RewriteLog and RewriteLogLevel directives.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.