summaryrefslogtreecommitdiffstats
path: root/roles/awstats_vhost/templates/awstats.conf
blob: b3969fc25e5e4dce7da43d10e1e0bbb24804a48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ScriptAlias /cgi-bin/ "/usr/share/awstats/wwwroot/cgi-bin/"

SetEnv AWSTATS_CONFIG www.theopensourceway.org
<Directory "/usr/share/awstats/wwwroot/cgi-bin">
        Options +ExecCGI
        AddHandler cgi-script .pl
        AllowOverride None
        Require all granted
</Directory>

<Location /cgi-bin/awstats.pl>
    AuthType Basic
    AuthName "Authentication Required"
    AuthUserFile "/etc/httpd/htpasswd"
    require valid-user
</Location>