Fellow PLUGgers,

At The Leather Collection, Inc., we have an "everything-server" that
among other tasks, serves a number of name-based virtual hosts using
Apache. Recently I wanted to find out how each virtual host was
"utilized", and after a quick search, found AWStats[1].

It's pretty funky, and best of all, is straightforward to get up and
running. On our Debian GNU/Linux server, an

    # apt-get install awstats

retrieved the package and all its prerequisites. Because I had been
doing minimal logging, I had to reconfigure the Apache virtual hosts to
do logging using the 'combined' logging format for maximum information.
Then I built configuration files in /etc/awstats, one per virtual host,
using the provided /usr/share/doc/awstats/awstats.model.conf.gz, which
came complete with explanatory comments.

AWStats is very flexible. It has a built-in authentication checking
mechanism, which allows you to specify wether basic authentication will
be required and which users must be logged on. It doesn't do the actual
authentication, which is off-loaded to the web server (Apache, in my
case). It does, however, allow stats for certain virtual hosts to be
accesible by everyone, and others to be restricted, without requiring
multiple CGIs installed.

The reports generated from the 'combined' log files are also very
informative. I've made the stats for the main free.net.ph website[2]
public, for those who want a preview of sorts. It's not yet very
populated, though: I restarted the logs before setting things up the
other day.

BTW, some of you may notice that the main free.net.ph website is powered
by Zope. It is. Apache sits in front of it, though, and passes things
off using a combination of mod_rewrite and mod_proxy. That's how I'm
able to make accesses to the awstats.pl CGI go through without having to
muck with Zope.

Coolness, free software is! :)

 --> Jijo

[1] http://awstats.sourceforge.net
[3] http://free.net.ph/cgi-bin/awstats.pl

-- 
Federico Sevilla III  : http://jijo.free.net.ph      : When we speak of free
Network Administrator : The Leather Collection, Inc. : software we refer to
GnuPG Key ID          : 0x93B746BE                   : freedom, not price.
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to