blob: ce8fd512bac3cef1ee1d486a15850fad19907d6e (
about) (
plain) (
blame)
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
|
--- tools/httpd_conf.orig 2017-04-03 21:14:00.521107366 -0500
+++ tools/httpd_conf 2017-04-03 21:16:07.783196402 -0500
@@ -12,18 +12,19 @@
# 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">
- Options None
+<Directory "@DOCROOT@/awstats/wwwroot">
+ 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
</Directory>
|