From b63f756115fc96f252873d7b202eb7e7e92c20da Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Wed, 16 Aug 2017 12:33:26 -0400 Subject: [PATCH] Revert "Replace buildlogs.centos with buildlogs.cdn.centos" So it seems that metadata lives on buildlogs.centos.org and RPM on buildlogs.cdn.centos.org. For the moment, we'll need to support both. Which means, we still have a 302 redirect hit. It shouldn't be too bad, because this is how docker.io also works. This reverts commit d4b73ff77fb44a85209e5cc33ec57d4675042e15. Change-Id: Id202d41357c42eeb73020a3a6e6c768644ad1139 Signed-off-by: Paul Belanger --- modules/openstack_project/templates/mirror.vhost.erb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/openstack_project/templates/mirror.vhost.erb b/modules/openstack_project/templates/mirror.vhost.erb index b661967b62..ce13dd181f 100644 --- a/modules/openstack_project/templates/mirror.vhost.erb +++ b/modules/openstack_project/templates/mirror.vhost.erb @@ -140,10 +140,15 @@ NameVirtualHost <%= @vhost_name %>:8081 # Per site caching reverse proxy rules # Only cache specific backends, rely on afs cache otherwise. - # buildlogs.cdn.centos.org + # buildlogs.centos.org (302 redirects to buildlogs.cdn.centos.org) CacheEnable disk "/buildlogs.centos" - ProxyPass "/buildlogs.centos/" "https://buildlogs.cdn.centos.org/" - ProxyPassReverse "/buildlogs.centos/" "https://buildlogs.cdn.centos.org/" + ProxyPass "/buildlogs.centos/" "https://buildlogs.centos.org/" + ProxyPassReverse "/buildlogs.centos/" "https://buildlogs.centos.org/" + + # buildlogs.cdn.centos.org + CacheEnable disk "/buildlogs.cdn.centos" + ProxyPass "/buildlogs.cdn.centos/" "https://buildlogs.cdn.centos.org/" + ProxyPassReverse "/buildlogs.cdn.centos/" "https://buildlogs.cdn.centos.org/" # rdo CacheEnable disk "/rdo"