Try use
RewriteLocation 0
in Listien definition in pound.

W dniu 05.12.2012 18:49, James Bensley pisze:
Hi all,

I'm not sure why this is happening or how,
Scenario is a single load balancer box with HAProxy and Pound Proxy:

1.2.3.4:80 Public IP - Pound listens for HTTP requests
|
|
|
127.0.0.1:80 HAProxy, configured as backend in Pound on loopback
|
|
|
192.168.0.1 Intenral IP facing web servers

|
|

192.168.0.2:80 Backend web server configured in HAProxy

What I am seeing is a "GET / Host: www.oldsite.com" comes from 5.5.5.5
(my public IP)

Request from 127.0.0.01:random_high_port to 127.0.0.1:80, Pound
passing request to HAProxy

Request from 192.168.0.1 to 192.168.0.2:80, HAProxy passing to backend
web server

Reply back from 192.168.0.2 to 192.168.0.1 "302 Redirect Location:
http://newsite.com/moved.html";

Reply back from HAProxy to Pound from 127.0.0.1:80 to
127.0.0.01:random_high_port

Reply back from Pound (1.2.3.4) to me (5.5.5.5) and the header has
changed to  "302 Redirect Location: http://oldsite.com/moved.html";

I am using ngrep on the load balancer and I can see the headers at
every step. They change right at the last step before being sent back
to my browser (as they leave Pound, but I can see them being returned
to Pound from HAProxy unchanged).

I'm stumped, any help would be greatly appreciated!

Thank you,
James.

--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.



--
Regards,
Andrzej 'The Undefined' Dopierała
http://andrzej.dopierala.name/


--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.

Reply via email to