From 7d6d10e7e5f694e483cde88c2f68bfe666e45d2f Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Tue, 10 May 2016 15:24:17 +0000 Subject: [PATCH] ProxyPass and redirect don't collaborate nicely Signed-off-by: Patrick Uiterwijk --- .../templates/reversepassproxy.mirrormanager-redirector.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager-redirector.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager-redirector.conf index dc2bf02cb8..ad2ac49d70 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager-redirector.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.mirrormanager-redirector.conf @@ -8,7 +8,7 @@ RewriteRule (.*) - [F] #RewriteCond %{REQUEST_URI} ^/pub/fedora/linux/.*[/]+sparc.* #RewriteRule ^/pub/fedora/linux/(.*) /pub/fedora-secondary/$1 -Redirect 307 /pub/fedora/linux/releases/test/24_Beta/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-24_Beta-1.6.iso https://dl.fedoraproject.org/pub/fedora/linux/releases/test/24_Beta/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-24_Beta-1.6.iso +RewriteRule ^/pub/fedora/linux/releases/test/24_Beta/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-24_Beta-1.6.iso$ "https://dl.fedoraproject.org/pub/fedora/linux/releases/test/24_Beta/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-24_Beta-1.6.iso" [L,R=307] RewriteRule ^/(.+) {{proxyurl}}/mirrorlist?path=$1&redirect=1 [P,QSA,L] RewriteRule ^/$ {{proxyurl}}/mirrorlist?path=pub/fedora/linux/&redirect=1 [P,QSA,L]