Try a fix for ticket 5276

This commit is contained in:
Kevin Fenzi 2016-05-05 16:22:40 +00:00
parent d3697b393f
commit ab4ec2c779

View file

@ -63,7 +63,7 @@ Alias /buildgroups "/mnt/koji/buildgroups/"
Require all granted
</Directory>
{% if inventory_hostname.startswith('koji') %}
{% if inventory_hostname.startswith('koji') and 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]