apache: Don't just send 403s on Apache 2.4

Change-Id: I3be37aadf7e33aa84d289beba6445a80c870d21f
This commit is contained in:
Alex Monk 2016-08-06 17:49:09 +00:00
parent 4b020efa66
commit d63b5653f9
1 changed files with 9 additions and 0 deletions

View File

@ -72,6 +72,15 @@
# Don't run arbitrary PHP code.
php_admin_flag engine off
</Directory>
<Directory "<%= scope.lookupvar('mediawiki::mediawiki_location') %>">
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
allow from all
</IfVersion>
</Directory>
<IfModule mod_expires.c>
ExpiresActive On
<Directory "<%= scope.lookupvar('mediawiki::mediawiki_location') %>">