Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The AWStats setup instructions I have seen specifiy how to set up apache so you can view the statistics for each site by going to something like:

Does anyone know how I could configure it to work with another domain for the "" stats. For example something like:

share|improve this question

AWStats is normally configured to run as a cron job. There are two parts to it.

1.) Run an update of the database. This ingests the log files. 2.) Generate the output. This is the part you need to look at.

Here's an example of what I do for some of the sites on my server:

00 7 * * *      perl /usr/lib/cgi-bin/ -output -staticlinks >/var/www/manticore/stats/awstats.blackbirds.html

The /var/www/manticore folder is the home folder for the server's main domain (, this is live so go and have a look, the default site is actually empty and you'll get an error, but the awstats files are all there).

As you can see this is done with a simple output redirection. And, sorry, yes, this only really works this way under Linux. I haven't got an idea how to do this under Windows.

share|improve this answer
You may need to set AWSTATS_FORCE_CONFIG in your Apache config as well: – Gerald Combs Sep 15 '10 at 17:08
Seems to work but I wonder if there is anyway to do it but keep the nice navigation? – Kyle Brandt Sep 15 '10 at 17:20
What are you referring to by "nice navigation"? – wolfgangsz Sep 15 '10 at 17:27
@wolfgangsz: Side-bar navigation frame. – Kyle Brandt Sep 15 '10 at 17:31
TBH, I have never seen a side bar in those stats. Can you point me at an example? – wolfgangsz Sep 15 '10 at 17:32

Out of the box, awstats is able to do this for you:

This will show you the stats for

This assumes that is hosted on the same server as

You should be able to use this approach for any virtual host you are monitoring via awstats on the same server.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.