]> git.pld-linux.org Git - packages/dokuwiki.git/blobdiff - dokuwiki-apache.conf
Fix system geshi loading
[packages/dokuwiki.git] / dokuwiki-apache.conf
index c195ca87e173a3454d4b6bbf5f2e1498cd68bb35..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
@@ -23,3 +30,14 @@ Alias /dokuwiki /usr/share/dokuwiki
                RewriteRule ^index.php$               doku.php
        </IfModule>
 </Directory>
+
+<Directory ~ /usr/share/dokuwiki/(conf|inc|bin|data)>
+       <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.05771 seconds and 4 git commands to generate.