Snippet: PHP AWstats directory
September 17, 2007
I wanted to set up a separate VirtualHost just to access my AWstats pages, rather than using the standard method of hostname.com/awstats/awstats.pl.
Two advantages:
- Can lock down a single vhost with htaccess
- Less typing, leaving you with a kind of ‘stats dashboard’ to see all your virtual host statistics.
I also pulled the awstats apache directives from the general httpd.conf, and added them to the stats VirtualHost in order to consolidate access and prevent “stats fishing” of my other sites.
Posted in
content rss
September 17th, 2007 at 6:20 pm
A couple notes — I’m not really much of a PHP coder, so there might be something glaringly ugly here. Let me know if you have suggestions for changes.
Thanks!