Hi Aleks, On Wed, May 15, 2019 at 05:51:25AM +0200, Aleksandar Lazic wrote: > For example such a generic replacement could be like this? > > http://cbonte.github.io/haproxy-dconv/1.9/configuration.html#4.2-reqrep > > # replace "/static/" with "/" at the beginning of any request path. > reqrep ^([^\ :]*)\ /static/(.*) \1\ /\2 # replace > > http://cbonte.github.io/haproxy-dconv/1.9/configuration.html#4.2-http-request%20set-path > > > http-request set-path %[path,regsub(/static/(.*),\1,g)
Exactly! While we can't expect the config parser to propose these, at least it could point to replace-header, set-header, set-path etc so that users take a look at the doc and update their 10-years old configs. Willy

