Yes, using the latest 1.5-dev version. Was going to paste my config but no need. The set-header option solved the problem. Thank you again Cyril. I guess I owe you several beers when you visit San Francisco:)
Steve On Thu, Mar 6, 2014 at 3:10 PM, Cyril Bonté <[email protected]> wrote: > 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é >

