From ab4ec2c7795dddd0a45ba20a0645afde23c87db2 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 5 May 2016 16:22:40 +0000 Subject: [PATCH] Try a fix for ticket 5276 --- roles/koji_hub/templates/kojiweb.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]