ServerName www.wizzbike.com ServerAlias wizzbike.com DocumentRoot /var/www/wizzbike/live DirectoryIndex index.php index.html index.cgi AllowOverride All Options All Order allow,deny Allow from all CustomLog /var/log/apache2/www.wizzbike.com.log combined RewriteEngine on RewriteLog /var/log/apache2/rewrite.log RewriteLogLevel 9 # Proxying Order Deny,Allow Allow from all # Rewrite rule to go straight to stats RewriteCond %{REQUEST_URI} ^/stats/$ RewriteRule (.*) /stats/awstats.pl?config=www.wizzbike.com [PT] # Stats ProxyPass /stats/ http://stats.wizzbike.com/ ProxyPassReverse /stats/ http://stats.wizzbike.com/ ProxyPass /awstats-icon/ http://stats.wizzbike.com/awstats-icon/ ProxyPassReverse /awstats-icon/ http://stats.wizzbike.com/awstats-icon/ ServerName stats.wizzbike.com ServerAdmin webmaster@initforthe.com DocumentRoot /usr/lib/cgi-bin AddHandler cgi-script cgi pl Alias /awstats-icon/ /usr/share/awstats/icon/ AuthType Basic AuthName "Wizzbike.com Statistics" AuthUserFile /var/www/.htpasswd Require valid-user Options +ExecCGI -Indexes Options None AllowOverride None Order allow,deny Allow from all Options None AllowOverride None Order allow,deny Allow from all