summaryrefslogtreecommitdiff
path: root/network/awstats/patches/httpd-awstats.conf.patch
blob: 8416e86420778e4d70637d5dafa4f8f362a83ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- tools/httpd_conf.orig	2010-10-23 19:51:54.680793559 -0500
+++ tools/httpd_conf	2010-10-23 20:05:01.614053640 -0500
@@ -1,29 +1,23 @@
-#
-# Content of this file, with correct values, can be automatically added to
-# your Apache server by using the AWStats configure.pl tool.
-#
-
-
-# If using Windows and Perl ActiveStat, this is to enable Perl script as CGI.
-#ScriptInterpreterSource registry
-
+# Modified by Nishant Limbachia <nishant _AT_ mnspace _DOT_ net>
+# Modified on Oct 23, 2010
+# 1. Fixup paths for SlackBuilds.org
+# 2. Tighten default access mode
 
 #
 # 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.
 #
-<Directory "/usr/local/awstats/wwwroot">
+<Directory "@DOCROOT@/awstats/wwwroot">
     Options None
     AllowOverride None
-    Order allow,deny
-    Allow from all
+    Order deny,allow
+    Deny from all
+    Allow from localhost
 </Directory>