--- tools/httpd_conf.orig 2016-07-21 17:38:42.889026388 +0700 +++ tools/httpd_conf 2016-07-21 17:38:44.177011033 +0700 @@ -12,18 +12,20 @@ # Directives to add to your Apache conf file to allow use of AWStats as a CGI. # Note that path "/usr/local/awstats/" must reflect your AWStats install path. # -Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/" -Alias /awstatscss "/usr/local/awstats/wwwroot/css/" -Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/" -ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/" +Alias /awstatsclasses "@DOCROOT@/awstats/wwwroot/classes/" +Alias /awstatscss "@DOCROOT@/awstats/wwwroot/css/" +Alias /awstatsicons "@DOCROOT@/awstats/wwwroot/icon/" +ScriptAlias /awstats/ "@DOCROOT@/awstats/wwwroot/cgi-bin/" # # This is to permit URL access to scripts/files in AWStats directory. # - - Options None + + Options FollowSymLinks ExecCGI AllowOverride None - Order allow,deny - Allow from all + AddHandler cgi-script pl + DirectoryIndex awstats.pl + Require all granted + Require ip 127.0.0.1