httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dustin Chesterman <>
Subject [users@httpd] Module specific logging not working
Date Fri, 10 Dec 2010 00:18:37 GMT
Hello all -
  I am having trouble getting logging to work for some modules,
specifically mod_rewrite and mod_jk.  Here is a portion of my
httpd.conf.  I get mod_jk logging for the startup process in my
mod_jk.log but not the request level logging.  But the forwarding is
working.  The rewrite.log has nothing in it ever.  I thought it could
be a problem with how i set up the modules butsince it's happening to
two I thought I must have something wrong globally.  Any suggestions
on why this might be happening.  My access.log is populating as

<IfModule jk_module>
    # We need a workers file exactly once and in the global server
    JkWorkersFile conf/
    JkMountFile conf/
    JkMountCopy All
    JkLogFile logs/mod_jk.log
    # (trace,debug,info,warn,error)
    JkLogLevel debug

ErrorLog "logs/error.log"

LogLevel debug

<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    CustomLog "logs/access.log" common

# Logs for rewrite module
RewriteLog "logs/rewrite.log"
RewriteLogLevel 9

\NameVirtualHost *:8080
NameVirtualHost *:8443
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.

# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.

<VirtualHost *:8080>
    ServerAlias localhost
    DocumentRoot "C:\Deploy\Accounts"

    JkMountCopy Off
    JkMount /* cmdevworker
    # Any way to make these case-insensitive????
    JkUnMount /accounts|/* cmdevworker
    JkUnMount /Accounts|/* cmdevworker
    JkRequestLogFormat "%w %V %T"

<VirtualHost *:8443>
    ServerAlias localhost
    DocumentRoot "C:\Certain\Deploy\Accounts"

    RewriteEngine On
    RewriteCond ${SCRIPT_NAME} !^/accounts/(.*) [NC]
    RewriteRule (.*) /CF9R123/Register123$1

    JkMountCopy Off
    JkMount /* cmdevworker
    JkUnMount /Accounts|/* cmdevworker
    JkUnMount /accounts|/* cmdevworker
    JkRequestLogFormat "%w %V %T"

Thanks all

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message