Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

    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>

Please, help me to correct LogLevel statement. Thanks.

share|improve this question

You're looking at the wrong documentation!


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


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.