ProxyPass, RedirectMatch and double slashes
am 14.10.2009 14:33:32 von Mark Watts--=-09Zer5Z/r+ZsvwcP9Kik
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
I've got a pair of Apache 2.2.13 boxes.
One is acting as a load balancer (mod_proxy_balancer), proxying requests
to the back-end server. Eventually a second back-end server will be
commissioned.
On the proxy I have the following config:
BalancerMember http://sweb01 loadfactor=3D1
ProxySet lbmethod=3Dbyrequests
=20
ProxyPass / balancer://static-web/
ProxyPassReverse / balancer://static-web/
=20
=20
On the back-end server I have the following:
RedirectMatch ^/$ /output/index.html
When a request to http://www.example.com/ is made (using wget), I see
the following:
Proxy:
192.168.1.1 - - [14/Oct/2009:11:08:30 +0000] "GET / HTTP/1.0" 302 229
"-" "Wget/1.10.2"
192.168.1.1 - - [14/Oct/2009:11:08:30 +0000]
"GET //output/uk-home-page.html HTTP/1.0" 200 15750 "-" "Wget/1.10.2"
Back-end Server:
172.16.20.11 - - [14/Oct/2009:11:08:30 +0000] "GET / HTTP/1.1" 302 229
"-" "Wget/1.10.2"
172.16.20.11 - - [14/Oct/2009:11:08:30 +0000]
"GET /output/uk-home-page.html HTTP/1.1" 200 15750 "-" "Wget/1.10.2"
Can anyone help me understand where the extra / is coming from on the
Proxy?
Mark.
--=20
Mark Watts BSc RHCE MBCS
Senior Systems Engineer, Managed Services Manpower
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg
--=-09Zer5Z/r+ZsvwcP9Kik
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEABECAAYFAkrVxRwACgkQBn4EFUVUIO0VHQCfaZiuv97KYmnXwA+fLp7T nAH1
HmwAoJMo5uXgYoLysKSgJ+mpUTGLd69D
=1Ul9
-----END PGP SIGNATURE-----
--=-09Zer5Z/r+ZsvwcP9Kik--