Think I figured it out now. I'm using an acl to push the request to a backend that contains the external server. In the backend i'm then rewriting the url.
What are the reasons most people seem to front haproxy with apache or nginx? Thanks, Matt 2009/10/27 Matt <[email protected]>: > Hi, > > I've managed to rewrite urls using the reqrep function but only for > urls which are on the same domain. > > This works > reqrep ^([^\ ]*)\ /my.xml(.*) \1\ /foo/bar/my.xml\2 > > but this doesn't seem to > reqrep ^([^\ ]*)\ /my.xml(.*) \1\ http://newdomain.com/foo/bar/my.xml\2 > > I'd like to use the acl method but I see this only does redirect and > not proxying? is this still the case? > > In apache I guess i'd just do this: > RewriteRule ^/my.xml$ http://newdomain/foo/bar/my.xml [P,L,QSA] > > Couldn't seem to find many examples in the docs that would help on this. > > Thanks, > > Matt >

