Fix httpd config o koji.stg

Partially reverts commit 061ae15, which broken working config.
The intention of 061ae15 was to remove only code specific to secondary
arches, but accidentally stg-specific code was removed too.
This commit is contained in:
Mikolaj Izdebski 2018-06-11 13:35:33 +00:00
parent 8bea5c3bda
commit 64bff7f658

View file

@ -65,6 +65,22 @@ Alias /buildgroups "/mnt/koji/buildgroups/"
Require all granted
</Directory>
{% if env == "production" %}
# use redirects for compose and packages locations
RewriteRule ^/compose(.+) https://kojipkgs.fedoraproject.org/compose$1 [R=301,L]
RewriteRule ^/packages(.+) https://kojipkgs.fedoraproject.org/packages$1 [R=301,L]
{% else %}
Alias /compose "/mnt/koji/compose/"
<Directory "/mnt/koji/compose/">
Options Indexes FollowSymLinks
Require all granted
</Directory>
Alias /packages "/mnt/koji/packages/"
<Directory "/mnt/koji/packages/">
Options Indexes FollowSymLinks
Require all granted
</Directory>
{% endif %}