my awstats conf file is in /etc/awstats/awstats.mydomain.com.conf ################################################# I added this to the bottom after Include "" Options +ExecCGI AddHandler cgi-script pl DirectoryIndex awstats.pl AuthUserFile /home/myusername/domains/mydomain.com/public_html/awstats/.htpasswd AuthType Basic AuthName "AwStats Protection" require valid-user Also, in /home/myusername/domains/mycomain.com/public_html/awstats i renamed .htaccess to .htaccess2