Fix up apache 2.2 vs 2.4 stuff

This commit is contained in:
Kevin Fenzi 2015-05-07 18:27:37 +00:00
parent 45dfa7ff95
commit b1eea42305
2 changed files with 22 additions and 3 deletions

View file

@ -1 +1,13 @@
Alias /freemedia /srv/web/freemedia/
<Location /freemedia>
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Location>

View file

@ -3,7 +3,14 @@ WSGIDaemonProcess geoip-city user=apache processes=45 threads=1 display-name=geo
WSGIScriptAlias /city /usr/share/geoip-city-wsgi/geoip-city.wsgi
<Location /city>
WSGIProcessGroup geoip-city
Order deny,allow
Allow from all
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Location>