diff --git a/roles/koji_hub/templates/kojiweb.conf.j2 b/roles/koji_hub/templates/kojiweb.conf.j2 index e564e54306..29b9292a92 100644 --- a/roles/koji_hub/templates/kojiweb.conf.j2 +++ b/roles/koji_hub/templates/kojiweb.conf.j2 @@ -63,7 +63,7 @@ Alias /buildgroups "/mnt/koji/buildgroups/" Require all granted -{% 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]