Configure Multiple domain:

If you want add another domain for this status you dont want to install again just configure it as below steps,

Step 1 :

Copy the existing awstats configuration file.

# cp /etc/awstats/awstats.www.mydomain.com  /etc/awstats/www.yourdomain.com

Step 2 :

you have to edit few lines in www.seconddomain.com
 
# vi  /etc/awstats/www.seconddomain.com

Find the LogFile :  LogFile="/usr/local/nginx/logs/yourdomain.com"

Find the DirData :  DirData="/usr/local/awstats"

Site name           : SiteDomain="www. yourdomain.com "

HostAliases=" yourdomain.com  www. yourdomain.com 127.0.0.1 localhost"

Step 3 :

Update AWStats
 
# /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.yourdomain.com

Set Authentication:

If you want to set authentication to view Awstats on browser, open httpd.conf file and add below line.
 

            AuthType Basic
            AuthName "Awstat"
            AuthUserFile /usr/local/awstats/wwwroot/cgi-bin/.htpasswd
            Require valid-user

Create a  .htpasswd file
 
# htpasswd -b -c /usr/local/awstats/wwwroot/cgi-bin/.htpasswd  awstatsuser  awstatspass

Now, restart apache server and Access AWStats in Browser:
 
http://192.168.0.1/awstats/awstats.pl?config=yourdomain.com