From 564fc0fbf17ea18833f1d21c35bb54dd65a0f2db Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Dec 28 2018 20:15:24 +0000 Subject: mirrormanager: redirect 7Server to 7 for epel download redirects. Fixes https://pagure.io/fedora-infrastructure/issue/7444 Signed-off-by: Kevin Fenzi --- diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager-redirector.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager-redirector.conf index 8fb1ab5..a8d0ff7 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager-redirector.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager-redirector.conf @@ -8,6 +8,7 @@ RewriteRule (.*) - [F] #RewriteCond %{REQUEST_URI} ^/pub/fedora/linux/.*[/]+sparc.* #RewriteRule ^/pub/fedora/linux/(.*) /pub/fedora-secondary/$1 +RewriteRule ^/pub/epel/7Server/(.+) http://localhost:10002/mirrorlist?path=pub/epel/7/$1&redirect=1 [P,QSA,L] RewriteRule ^/(.+) {{proxyurl}}/mirrorlist?path=$1&redirect=1 [P,QSA,L] RewriteRule ^/$ {{proxyurl}}/mirrorlist?path=pub/fedora/linux/&redirect=1 [P,QSA,L]