Fix up apache 2.2 vs 2.4 stuff
This commit is contained in:
parent
45dfa7ff95
commit
b1eea42305
2 changed files with 22 additions and 3 deletions
|
@ -1 +1,13 @@
|
||||||
Alias /freemedia /srv/web/freemedia/
|
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>
|
||||||
|
|
|
@ -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
|
WSGIScriptAlias /city /usr/share/geoip-city-wsgi/geoip-city.wsgi
|
||||||
|
|
||||||
<Location /city>
|
<Location /city>
|
||||||
WSGIProcessGroup geoip-city
|
<IfModule mod_authz_core.c>
|
||||||
Order deny,allow
|
# Apache 2.4
|
||||||
Allow from all
|
Require all granted
|
||||||
|
</IfModule>
|
||||||
|
<IfModule !mod_authz_core.c>
|
||||||
|
# Apache 2.2
|
||||||
|
Order deny,allow
|
||||||
|
Allow from all
|
||||||
|
</IfModule>
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue