@ajohnson1200 wrote:
hey everyone!
Trying to do something that I think should be simple but for whatever reason won’t work… End result I want: an HTTP request for:
http://example.com/foo/bar.jpg
should result in a 302 to
but I want the original HTTP request to maintain it’s connection to example.com. My problem is that I see this:
HTTP/1.1 302 Found
Cache-Control: no-cache
Content-length: 0
Location: http://acme.com/foo/bar.jpg
Connection: closewhen I want to see this:
HTTP/1.1 302 Found
Cache-Control: no-cache
Content-length: 0
Location: http://acme.com/foo/bar.jpgand then to see this in curl:
- Connection #0 to host localhost left intact
I’ve tried every combination of adding “option http-keep-alive” to the defaults, frontend and backend sections. The syntax I’m using, inside of a backend config, looks like this:
http-request redirection location http://acme.com/foo/bar.jpg
Is there any way to configure haproxy to not close the original connection to example.com after doing a redirect to acme.com?
Posts: 5
Participants: 2