Thank you very much Cyril. I guess we need to wait 1.6 to be released then.
Regards Laurent Le jeudi 9 juillet 2015, Cyril Bonté <[email protected]> a écrit : > Hi Laurent, > > Le 07/07/2015 19:21, Laurent Mirguet a écrit : > >> Dear all, >> >> We would like to rewrite all urls for a certain backend to their lower >> case form. >> >> We thought on something like >> reqrep ^([^\ ]*\ )(.*) %[\1,lower] >> >> Is it possible to do so with HAProxy ? >> > > I don't see any simple (and maintainable) example except by using the 1.6 > development branch which allows : > http-request set-path %[path,lower] > > With this rule, > /Foo will be seen as /foo by the backend > /Foo?BAR will be seen as /foo?BAR > > Wanting to also lowercase the query string ? > http-request set-uri %[url,lower] > > Using 1.5 stable branch, you may introduce a redirect which is probably > not what you whant : > http-request redirect location %[path,lower] > or > http-request redirect location %[url,lower] > > Note : he first one will lose the query string, the second one will > lowercase the query string > > -- > Cyril Bonté >

