See the docs for reqrep: http://code.google.com/p/haproxy-docs/wiki/reqrep
-Bryan On Thu, Dec 27, 2012 at 8:44 AM, Alexandru Florescu <[email protected]>wrote: > > Hi, > I have an old style URL that looks like this: > http://api.domain.com/some_path > and a new style URL that looks like this > http://api.domain.com/v2/some_path > > While I can put a 302 redirect in the old style URL that will point to the > new one this introduces a 100-200ms latency and > I was wondering if I could avoid this by setting HAproxy so when the URL > http://api.domain.com/some_path is called then transparently the new URL > is called by HAproxy and the results sent as if > generated by the old URL. > > Would such a configuration be possible? > > Thank you, > Alex > > > -- > Alex Florescu > http://PagePeeker.com <http://pagepeeker.com> > [email protected] > twitter: @PagePeeker <https://twitter.com/PagePeeker> > facebook: https://www.facebook.com/pagepeeker >

