[packages/bacula-web] apache multiversion config
glen
glen at pld-linux.org
Thu Sep 26 22:57:39 CEST 2013
commit 5fb85618f7a250fa0513f532432fbd2d76d18704
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Sep 26 23:57:24 2013 +0300
apache multiversion config
apache.conf | 29 ++++++++++++++++++++++++-----
bacula-web.spec | 2 +-
2 files changed, 25 insertions(+), 6 deletions(-)
---
diff --git a/bacula-web.spec b/bacula-web.spec
index 48302bb..7fe47f7 100644
--- a/bacula-web.spec
+++ b/bacula-web.spec
@@ -5,7 +5,7 @@
Summary: Open source monitoring and reporting tool for Bacula
Name: bacula-web
Version: 5.2.12
-Release: 3
+Release: 4
License: GPL v2
Group: Applications/WWW
Source0: http://www.bacula-web.org/tl_files/downloads/%{name}-%{version}.tar.gz
diff --git a/apache.conf b/apache.conf
index 2c36f4f..26095fb 100644
--- a/apache.conf
+++ b/apache.conf
@@ -1,12 +1,31 @@
Alias /bacula-web/cache/ /var/cache/bacula-web/
Alias /bacula-web /usr/share/bacula-web
+
<Directory /usr/share/bacula-web>
- allow from all
+ # Apache < 2.4
+ <IfModule !mod_authz_core.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
+ # Apache 2.4
+ <IfModule mod_authz_core.c>
+ Require all granted
+ </IfModule>
</Directory>
<Directory /var/cache/bacula-web>
- deny from all
- <Files *.png>
- allow from all
- </Files>
+ # Apache < 2.4
+ <IfModule !mod_authz_core.c>
+ Deny from all
+ <Files *.png>
+ Allow from all
+ </Files>
+ </IfModule>
+ # Apache 2.4
+ <IfModule mod_authz_core.c>
+ Require all denied
+ <Files *.png>
+ Require all granted
+ </Files>
+ </IfModule>
</Directory>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/bacula-web.git/commitdiff/5fb85618f7a250fa0513f532432fbd2d76d18704
More information about the pld-cvs-commit
mailing list