]> git.pld-linux.org Git - packages/bacula-web.git/blobdiff - apache.conf
- drop obsolete and outdated manual inclusion of rpm macros
[packages/bacula-web.git] / apache.conf
index 2c36f4f85bcf6cb59d168956497d408e936e49aa..26095fbd056396115d526597aba0651d0523a94f 100644 (file)
@@ -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>
This page took 0.029599 seconds and 4 git commands to generate.