[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

download.fp.o -> proxies and redirects

The last step in completing the download.fp.o move onto the proxy
servers is to remove the forced client redirect, and instead use a
local rewrite rule and proxy pass, just as mirrors.fp.o/mirrorlist

I think this is right, but want extra eyeballs.  Here's the diff.

Index: rewrite.conf
RCS file: /cvs/puppet/configs/web/download.fedoraproject.org/rewrite.conf,v
retrieving revision 1.6
diff -u -r1.6 rewrite.conf
--- rewrite.conf        19 Nov 2007 23:06:40 -0000      1.6
+++ rewrite.conf        26 Mar 2008 20:52:53 -0000
@@ -1,3 +1,12 @@
-RewriteEngine on
-RewriteRule ^/(.+)$ http://mirrors.fedoraproject.org/mirrorlist?path=$1&redirect=1 [R=307,L]
-RewriteRule ^/$ http://mirrors.fedoraproject.org/mirrorlist?path=pub/fedora/linux/&redirect=1 [R=307,L]
+<Location /mirrorlist>
+RequestHeader set CP-Location /mirrormanager
+RewriteEngine On
+RewriteRule ^/(.*)$ balancer://mirrorsCluster//mirrorlist?path=$1&redirect=1 [P]
+RewriteRule ^/$     balancer://mirrorsCluster//mirrorlist?path=pub/fedora/linux/&redirect=1 [P]
+ProxyPassReverse       /       http://app3.fedora.phx.redhat.com
+ProxyPassReverse       /       http://app4.fedora.phx.redhat.com
+ProxyPassReverse       /       http://app5.vpn.fedoraproject.org

and for reference, here's what mirrors.fp.o has this below.  The interesting rule is the second rewriterule.

<Location /mirrorlist>
RequestHeader set CP-Location /mirrormanager

RewriteEngine On
RewriteRule ^/publiclist(.*) balancer://mirrorsCluster//mirrorlists/publiclist/$1 [P]
RewriteRule ^/mirrorlist(.*) balancer://mirrorsCluster//mirrorlist$1 [P]
RewriteRule ^/(.*)$ balancer://mirrorsCluster//mirrorlists/$1 [P]

RewriteRule ^/(.*)      balancer://mirrorsCluster/$1 [P]

ProxyPassReverse        /       http://app3.fedora.phx.redhat.com
ProxyPassReverse        /       http://app4.fedora.phx.redhat.com
ProxyPassReverse        /       http://app5.vpn.fedoraproject.org

Matt Domsch
Linux Technology Strategist, Dell Office of the CTO
linux.dell.com & www.dell.com/linux

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]