How to setup LogLevel for mod_rewrite ?

Discussion in 'Site & Server Administration' started by iliyahoo, Oct 7, 2012.

  1. #1
    Hi,
    I'm trying to enable mod_rewrite detailed logging at the trace3log level, as discribed in man:
    http://httpd.apache.org/docs/current/mod/mod_rewrite.html

    I've put this line to 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
    DocumentRoot "/data/website/php./web"
    ErrorLog "/data/website/logs/error.log
    CustomLog "/data/website/logs/access.log combined
    LogLevel alert rewrite:trace3
    </VirtualHost>

    Please, help me to correct LogLevel statement.
    Thanks.
     
    iliyahoo, Oct 7, 2012 IP
  2. cesurasean

    cesurasean Active Member

    Messages:
    269
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #2
    I believe it would be just Loglevel alert

    It's telling you that you can only give Loglevel 1 command, but you gave it 2-3........
     
    cesurasean, Feb 23, 2013 IP