Click to See Complete Forum and Search --> : Webalizer Config


ultrabook
01-24-2003, 08:11 PM
I am attempting to setup Webalizer on not only the main host but also with my Virtual Hosts. Each Virtual Host is setup to create its own log as follows.

<VirtualHost *:80>
ServerAdmin hostmaster@defragmented.net
DocumentRoot /home/defdynamo/public_html
ServerName defdynamo.defragmented.net
ServerAlias *.defdynamo.defragmented.net
ErrorLog logs/defdynamo.defragmented.net-error_log
CustomLog logs/defdynamo.defragmented.net-access_log common
</VirtualHost>

I am confused though, because when I look in the /var/log/httpd directory there are 5 logs for each VHost as follows.

defdynamo.defragmented.net-access_log(different file type)
defdynamo.defragmented.net-access_log.1
defdynamo.defragmented.net-access_log.2
defdynamo.defragmented.net-access_log.3
defdynamo.defragmented.net-access_log.4

I had a basic configuration of Webalizer setup not worrying about the VHosts and had it pointing to the main access_log in /var/log/httpd, but this file doesn't seem to be active as it is 0 bytes and contains no information. Was curious how to activate this in httpd.conf. My configuration of httpd.conf with regard to this appears as follows.

CustomLog logs/access_log common

Any help is greatly appreciated!

mdwatts
01-25-2003, 12:56 PM
Did you read the comments in httpd.conf about setting up custom logs in each of the <VirtualHost> containers?


#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog /var/log/httpd/access_log common

#
# If you would like to have agent and referer logfiles, uncomment the
# following directives.
#
#CustomLog /var/log/httpd/referer_log referer
#CustomLog /var/log/httpd/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 /var/log/httpd/combined_log combined



<VirtualHost *>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /www/docs/dummy-host.example.com
ServerName dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>


Is that what you are asking?