Yes, of course. i modified my /etc/apache2/sites-enabled/01_awstats.conf like this
Code:
#
# AWStats Begin
#
Alias /awstatsicons "/usr/share/awstats/icon/"
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/stats/(.+)/$ http://localhost/awstats/?config=$1 [P]
RewriteRule ^/stats/(.+)/awstats.pl(.*)$ http://localhost/awstats/$2 [P]
</IfModule>
ScriptAlias /awstats "/usr/lib/cgi-bin/awstats.pl"
<Directory /usr/lib/cgi-bin>
Options +ExecCGI
DirectoryIndex awstats.pl
Order allow,deny
Allow from all
AuthType Basic
AuthName "AWStats"
AuthUserFile /var/www/virtual/.htpasswd <- Could be a path...
Require user User1 User 2 .... <- USERs
</Directory>
</VirtualHost>
#
# AWStats End
#
Greez BeNe