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 thi
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 rew
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 HTTP/1.
3 matches
Mail list logo