Hey Matt, On 2010-07-22 23:47, Matt Flush wrote: > Is there a way to strip the path from a request only on the backend? In > the example below I want to direct traffic to www.domain.com/swf > <http://www.domain.com/v2>/* to the "flash" backend but drop the "swf" > so that the request is just "backend:80/" not backend:80/swf/". I've > tried different variations of "path_beg" and "url_beg" with no luck.
You probably want to use repreq inside the backend like so: reqrep ^([^\ ]*)\ /swf/(.*) \1\ /\2 The path_* and url_* stuff is only used for matching in ACLs, but not for changing anything. This as to be done explicitly using the req* and resp* directives. See the docs for more info: http://haproxy.1wt.eu/download/1.4/doc/configuration.txt or http://code.google.com/p/haproxy-docs/wiki/reqrep --Holger

