Le 06/03/2014 23:47, Steve Phillips a écrit :
I can't look at the backend server as it is slideshare.net
<http://slideshare.net>.
You can introduce a "debug" proxy in your configuration to log what
happens after the reqrep.
To answer your question Cyril...requests coming to the front-end will be
of the form:
<haproxy host>/slideshare...
I want to rewrite all instances of /slideshare -> /api/2/get_slideshow
and then reverse proxy the result to www.slideshare.net
<http://www.slideshare.net>:
<haproxy host>/slideshare -> www.slideshare.net/api/2/get_slideshow
<http://www.slideshare.net/api/2/get_slideshow>
Then it is already working.
Maybe you need to rewrite the Host header, also. Add this line in your
backend (I assume you're using a recent 1.5-dev version, otherwise I let
you guess the other way to do it with older keywords) :
http-request set-header Host www.slideshare.net
One mystery remains because you didn't provide a complete configuration.
Does your "main" frontend use multiple backends depending on acls ?
Maybe there's a configuration issue in one of the backends or directly
in the frontend (for example because the tunnel mode is used for other
accesses than /slideshare).
Btw, don't mix "option http-server-close" and "option httpclose".
--
Cyril Bonté