Ralfs

webalizer config

Webalizer home and Webalizer FAQ

process multiple virtual hosts on the same machine


The easiest way: each host generates it's own log file.
Create a central directory for your configuration files:
mkdir /etc/webalizer
Make a configuration file for each virtual host and place them in the central directory.
Each configuration file should have at least specified following configuration settings:
  1. HostName (domain),
  2. OutputDir,
  3. LogFile,
  4. HistoryName,
  5. IncrementalName
Make directories in /var/www/usage ( == OutputDir)
Make file /etc/cron.daily/00webalizeradd:
#!/bin/bash
for i in /etc/webalizer/*.conf; do webalizer -c $i; done
For tab delimited data files (for database):
# Field names in first row:
DumpHeader      yes

# File extension:
DumpExtension   tab

# What to dump:
DumpSites       yes
DumpURLs        yes
DumpReferrers   yes
DumpAgents      yes
DumpUsers       yes
DumpSearchStr   yes

Back to Home: Ralfs Home Page
Last modified: 13.03.2005
© 2005 Ralfs