Re: reqrep syntax

2017-05-08 Thread Aristedes Maniatis
On 9/5/17 8:26am, Holger Just wrote: > With a modern HAProxy (i.e. anything >= 1.6), you can just use > > http-request set-path %[path,regsub(^/static,/)] Brilliant, thanks. I spent 20 minutes trying to figure how to submit a patch for the documentation, but failed completely. Maintainers of

Re: reqrep syntax

2017-05-08 Thread Holger Just
Hi Ari, Aristedes Maniatis wrote: > In the manual [1] there is an example for using reqrep with syntax > like this: > > # replace "/static/" with "/" at the beginning of any request path. > reqrep ^([^\ :]*)\ /static/(.*) \1\ /\2 > > [...] > > Firstly, is there no better/cleaner way to

reqrep syntax

2017-05-08 Thread Aristedes Maniatis
In the manual [1] there is an example for using reqrep with syntax like this: # replace "/static/" with "/" at the beginning of any request path. reqrep ^([^\ :]*)\ /static/(.*) \1\ /\2 But a typical http request looks like this: GET /haproxy-dconv/1.7/configuration.html