--- awstats-7.9/tools/httpd_conf.orig 2014-09-23 09:16:09.000000000 +0200
+++ awstats-7.9/tools/httpd_conf 2023-01-18 23:30:18.097762242 +0100
@@ -10,20 +10,26 @@
#
# 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.
+# Note that path "/usr/share/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 "/usr/share/awstats/wwwroot/classes/"
+Alias /awstatscss "/usr/share/awstats/wwwroot/css/"
+Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/"
+ScriptAlias /awstats/ "/usr/share/awstats/wwwroot/cgi-bin/"
#
# This is to permit URL access to scripts/files in AWStats directory.
#
-<Directory "/usr/local/awstats/wwwroot">
+<Directory "/usr/share/awstats/wwwroot">
Options None
AllowOverride None
- Order allow,deny
- Allow from all
+ <IfModule mod_authz_core.c>
+ Require local
+ </IfModule>
</Directory>
+# Additional Perl modules
+<IfModule mod_env.c>
+ SetEnv PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
+</IfModule>
+