Re: Rewrite image path based on HTTP_REQUEST

2018-05-23 Thread Jarno Huuskonen
Hi, On Sat, May 19, Aleksandar Lazic wrote: > On 17/05/2018, Lotic Lists wrote: > > How can I rewrite a image path based on URL? > > > > Example, users request the url www.example.com/images/logo.png, haproxy just > > balance to backend servers normally. > > > > Now users request www.newdomain.c

Re: Rewrite image path based on HTTP_REQUEST

2018-05-18 Thread Aleksandar Lazic
On 17/05/2018, Lotic Lists wrote: > Hi experts > > How can I rewrite a image path based on URL? > > Example, users request the url www.example.com/images/logo.png, haproxy just > balance to backend servers normally. > > Now users request www.newdomain.com, I need rewrite URI to > /images/new-log

Rewrite image path based on HTTP_REQUEST

2018-05-17 Thread Lotic Lists
Hi experts How can I rewrite a image path based on URL? Example, users request the url www.example.com/images/logo.png, haproxy just balance to backend servers normally. Now users request www.newdomain.com, I need rewrite URI to /images/new-logo.png Tks. Marcelo