ProxyPass and redirect don't collaborate nicely

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-05-10 15:24:17 +00:00
parent 26868b53bc
commit 7d6d10e7e5

View file

@ -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]