Cleanup packages httpd configuration file.

This commit remove the duplicated Directory configuration
and use apache 2.4 configuration syntax.

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2017-12-21 10:28:37 +01:00 committed by Pierre-Yves Chibon
parent 5c4851f8f2
commit e22d3eb039

View file

@ -31,14 +31,6 @@ Alias /packages/tw2/resources/tw2.jqplugins.ui/static /usr/lib/python2.7/site-pa
Alias /packages/tw2/resources/tw2.jquery/static /usr/lib/python2.7/site-packages/tw2/jquery/static
Alias /packages/tw2/resources/fedoracommunity.connectors.widgets.widgets/static /usr/lib/python2.7/site-packages/fedoracommunity/connectors/widgets/static
<Directory /usr/share/fedoracommunity/public/images>
Require all granted
</Directory>
<Directory /var/cache/fedoracommunity/packages/icons
Require all granted
</Directory>
<Directory /usr/lib/python2.7/site-packages/tw2/jqplugins/ui/static>
Require all granted
</Directory>
@ -64,22 +56,8 @@ WSGIPythonOptimize 1
WSGIScriptAlias /packages /usr/share/fedoracommunity/production/apache/fedoracommunity.wsgi
#<Location /community>
# NSSOptions +StrictRequire
# NSSRequireSSL
# ErrorDocument 403 https://publictest16.fedoraproject.org/community
#</Location>
<Directory /usr/share/fedoracommunity/>
<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>
Require all granted
WSGIProcessGroup fedoracommunity
</Directory>
@ -89,5 +67,6 @@ WSGIScriptAlias /packages /usr/share/fedoracommunity/production/apache/fedoracom
# fedmenu, which will request icons for packages that
# don't necessarily have them. The UI will look weird
# unless those get magically redirected to a nice default.
Require all granted
ErrorDocument 404 https://apps.fedoraproject.org/packages/images/icons/package_128x128.png
</Directory>