]> git.pld-linux.org Git - packages/dokuwiki.git/blobdiff - dokuwiki-apache.conf
Up to 20230404a
[packages/dokuwiki.git] / dokuwiki-apache.conf
index b79c953ca5904747f55592f7bf212d63540d6b7f..dad8b75f0baf80f3fbe5683e79bf218b750f72d2 100644 (file)
@@ -1,6 +1,13 @@
 Alias /dokuwiki /usr/share/dokuwiki
 <Directory /usr/share/dokuwiki/>
-       Allow from all
+       <IfModule mod_authz_core.c>
+               # Apache 2.4
+               Require all granted
+       </IfModule>
+       <IfModule !mod_authz_core.c>
+               Order allow,deny
+               Allow from all
+       </IfModule>
 
        <IfModule mod_rewrite.c>
                Options +FollowSymLinks
@@ -25,5 +32,12 @@ Alias /dokuwiki /usr/share/dokuwiki
 </Directory>
 
 <Directory ~ /usr/share/dokuwiki/(conf|inc|bin|data)>
-       Deny from all
+       <IfModule mod_authz_core.c>
+               # Apache 2.4
+               Require all denied
+       </IfModule>
+       <IfModule !mod_authz_core.c>
+               Order deny,allow
+               Deny from all
+       </IfModule>
 </Directory>
This page took 0.129847 seconds and 4 git commands to generate.