7b08e7f
diff -up awstats-7.0/tools/httpd_conf.http-2.4 awstats-7.0/tools/httpd_conf
7b08e7f
--- awstats-7.0/tools/httpd_conf.http-2.4	2012-11-16 16:11:07.612386681 +0100
7b08e7f
+++ awstats-7.0/tools/httpd_conf	2012-11-16 16:44:24.921755562 +0100
7b08e7f
@@ -10,20 +10,33 @@
7b08e7f
 
7b08e7f
 #
7b08e7f
 # Directives to add to your Apache conf file to allow use of AWStats as a CGI.
7b08e7f
-# Note that path "/usr/local/awstats/" must reflect your AWStats install path.
7b08e7f
+# Note that path "/usr/share/awstats/" must reflect your AWStats install path.
7b08e7f
 #
7b08e7f
-Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
7b08e7f
-Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
7b08e7f
-Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
7b08e7f
-ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
7b08e7f
+Alias /awstatsclasses "/usr/share/awstats/wwwroot/classes/"
7b08e7f
+Alias /awstatscss "/usr/share/awstats/wwwroot/css/"
7b08e7f
+Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/"
7b08e7f
+ScriptAlias /awstats/ "/usr/share/awstats/wwwroot/cgi-bin/"
7b08e7f
 
7b08e7f
 
7b08e7f
 #
7b08e7f
 # This is to permit URL access to scripts/files in AWStats directory.
7b08e7f
 #
7b08e7f
-<Directory "/usr/local/awstats/wwwroot">
7b08e7f
+<Directory "/usr/share/awstats/wwwroot">
7b08e7f
     Options None
7b08e7f
     AllowOverride None
7b08e7f
-    Order allow,deny
7b08e7f
-    Allow from all
7b08e7f
+    <IfModule mod_authz_core.c>
7b08e7f
+        # Apache 2.4	
7b08e7f
+        Require local
7b08e7f
+    </IfModule>
7b08e7f
+    <IfModule !mod_authz_core.c>
7b08e7f
+        # Apache 2.2
7b08e7f
+        Order allow,deny
7b08e7f
+        Allow from 127.0.0.1
7b08e7f
+        Allow from ::1
7b08e7f
+    </IfModule>
7b08e7f
 </Directory>
7b08e7f
+# Additional Perl modules
7b08e7f
+<IfModule mod_env.c>
7b08e7f
+    SetEnv PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
7b08e7f
+</IfModule>
7b08e7f
+