From e756e7e8a99d604ef85a9630c856bc0ffae2a3f0 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 10 Jan 2012 05:16:15 -0500
Subject: [PATCH] Fixed: FS#1967 - AWStats statistics not accessible when the website uses suphp.
---
server/conf/apache_ispconfig.conf.master | 27 ++++++++++++++++++++++-----
1 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/server/conf/apache_ispconfig.conf.master b/server/conf/apache_ispconfig.conf.master
index 7439208..1c0d367 100644
--- a/server/conf/apache_ispconfig.conf.master
+++ b/server/conf/apache_ispconfig.conf.master
@@ -14,13 +14,24 @@
# Do not allow access to the root file system of the server for security reasons
<Directory />
- AllowOverride None
- Order Deny,Allow
- Deny from all
+ AllowOverride None
+ Order Deny,Allow
+ Deny from all
+</Directory>
+
+<Directory /var/www/conf>
+ AllowOverride None
+ Order Deny,Allow
+ Deny from all
</Directory>
# Except of the following directories that contain website scripts
<Directory /usr/share/phpmyadmin>
+ Order allow,deny
+ Allow from all
+</Directory>
+
+<Directory /usr/share/phpMyAdmin>
Order allow,deny
Allow from all
</Directory>
@@ -30,9 +41,15 @@
Allow from all
</Directory>
+# allow path to awstats and alias for awstats icons
+<Directory /usr/share/awstats>
+ Order allow,deny
+ Allow from all
+</Directory>
+
+Alias /awstats-icon "/usr/share/awstats/icon"
<tmpl_loop name="ip_adresses">
-NameVirtualHost {tmpl_var name="ip_address"}:80
-NameVirtualHost {tmpl_var name="ip_address"}:443
+NameVirtualHost {tmpl_var name="ip_address"}:{tmpl_var name="port"}
</tmpl_loop>
--
Gitblit v1.9.1