]> 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 7f038d1e5058f95028b6282aa43c2317218fa890..26095fbd056396115d526597aba0651d0523a94f 100644 (file)
@@ -1,4 +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>
+       # 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.033348 seconds and 4 git commands to generate.