Click to See Complete Forum and Search --> : Apache Virtual Hosts logs


kevin79
04-12-2002, 12:03 PM
I am trying to use cronolog on my webserver to rotate my logs, but when it does, I don't get all of my information. It doesn't list the referer or the user agent. THis is what I get:

12.34.33.67 - - [12/Apr/2002:11:18:30 -0400] "GET / HTTP/1.1" 200 2607
12.34.33.67 - - [12/Apr/2002:11:18:30 -0400] "GET /grfx/bm%20logo.jpg HTTP/1.1" 200 4617
12.34.33.67 - - [12/Apr/2002:11:18:30 -0400] "GET /grfx/cascade_bm_ad.jpg HTTP/1.1" 200 25948
12.34.33.67 - - [12/Apr/2002:11:18:30 -0400] "GET /grfx/bench_sm_left.gif HTTP/1.1" 200 4587
12.34.33.67 - - [12/Apr/2002:11:18:30 -0400] "GET /grfx/title_benchmate.jpg HTTP/1.1" 200 1784

and here is part of my httpd.conf file:

# ErrorLog: The location of the error log file. If this does not start
# with /, ServerRoot is prepended to it.

ErrorLog /var/log/httpd/error

# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.

LogLevel warn

# The following directives define some format nicknames for use with
# a CustomLog directive (see below).

LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# The location of the access logfile (Common Logfile Format).
# If this does not start with /, ServerRoot is prepended to it.

CustomLog /var/log/httpd/access combined

# If you would like to have an agent and referer logfile uncomment the
# following directives.

#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

# If you prefer a single logfile with access, agent and referer information
# (Combined Logfile Format) you can use the following directive.

#CustomLog logs/access_log combined

Here is the virtual host part:

<VirtualHost 63.241.175.51>
ServerName www.bench-mate.com (http://www.bench-mate.com)
ServerAdmin admin
DocumentRoot /home/sites/site3/web
RewriteEngine on
RewriteCond %{HTTP_HOST} !^63.241.175.51(:80)?$
RewriteCond %{HTTP_HOST} !^www.bench-mate.com(:80)?$
RewriteRule ^/(.*) http://www.bench-mate.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site3/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
TransferLog "|/usr/local/sbin/cronolog /home/sites/site3/logs/%Y/%m/%d/web.log"
</VirtualHost>


Does anyone see what the problem might be?