From f87161948c0caad91720b4057201cf47143c6140 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 26 Nov 2012 11:19:51 +0100 Subject: [PATCH] apache: Allow accessing sarg reports for admins. --- config/httpd/vhosts.d/ipfire-interface-ssl.conf | 10 ++++++++++ config/rootfiles/core/65/filelists/files | 1 + config/rootfiles/core/65/update.sh | 3 +++ 3 files changed, 14 insertions(+) diff --git a/config/httpd/vhosts.d/ipfire-interface-ssl.conf b/config/httpd/vhosts.d/ipfire-interface-ssl.conf index 7b10832549..cc3cb1d907 100644 --- a/config/httpd/vhosts.d/ipfire-interface-ssl.conf +++ b/config/httpd/vhosts.d/ipfire-interface-ssl.conf @@ -85,4 +85,14 @@ Order deny,allow Allow from all + + Alias /proxy-reports/ /var/log/sarg/ + + AllowOverride None + Options None + AuthName "IPFire - Restricted" + AuthType Basic + AuthUserFile /var/ipfire/auth/users + Require user admin + diff --git a/config/rootfiles/core/65/filelists/files b/config/rootfiles/core/65/filelists/files index d4067337e7..297f276bd9 100644 --- a/config/rootfiles/core/65/filelists/files +++ b/config/rootfiles/core/65/filelists/files @@ -1,3 +1,4 @@ +etc/httpd/conf/vhosts.d/ipfire-interface-ssl.conf etc/system-release etc/issue srv/web/ipfire/cgi-bin/logs.cgi/calamaris.dat diff --git a/config/rootfiles/core/65/update.sh b/config/rootfiles/core/65/update.sh index 729e764f0a..fca72115e1 100644 --- a/config/rootfiles/core/65/update.sh +++ b/config/rootfiles/core/65/update.sh @@ -52,6 +52,9 @@ perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang" # Re-read crontab. fcrontab -z &>/dev/null +# Reload apache configuration. +/etc/init.d/apache reload &>/dev/null + #Rebuild module dep's #arch=`uname -m` #if [ ${arch::3} == "arm" ]; then -- 2.39.2