Add a Location tag for static

For every alias, you need to have either a Directory or a Location
that matches it.
Source: https://wiki.apache.org/httpd/ClientDeniedByServerConfiguration

Upstream PR: https://github.com/fedora-infra/mirrormanager2/pull/41

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2015-04-14 09:58:38 +00:00
parent ad0f091abb
commit 741c799473

View file

@ -52,3 +52,15 @@ WSGIScriptAlias /mirrorlist /usr/share/mirrormanager2/mirrorlist_client.wsgi
Allow from all
</IfModule>
</Location>
<Location /static>
<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>