[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Custom Weblizer.conf



"John A. Federico" <cobalt@xxxxxxxxxxxxxxxxxx> wrote:
> According to what I've read in the archives, the configuration file should
> live in /etc/webalizer.conf - there's nothing there.

If it's not present Webalizer just uses all default settings.  Download the
Webalizer source from webalizer.com and you'll find it in there.

> My goal is to create custom configuration files for each site. Can anyone
> point to a how-to or other resource? (Or help with a solution?)

I generally setup Webalizer to loop through each site, check for a
webalizer.conf file in each site's home directory and if not found use
/etc/webalizer.conf.  Really the only time I don't setup Webalizer that way
is when a client only has one site or when the client doesn't want site
admins to have that control.

Here are some snippets from a Bash script I wrote:

if test -f $PATH_TO_SITES/$SITE/webalizer.conf
then
    CONF=$PATH_TO_SITES/$SITE/webalizer.conf
else
    CONF=/etc/webalizer.conf
fi

$WEBALIZER -c $CONF ...

Hope that helps.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/