Hi steven, If you're using haproxy 1.5, then use http-request rules. Otherwise you could run your redirect rules in a backend.
Baptiste Le 17 oct. 2013 23:28, "Steven Le Roux" <[email protected]> a écrit : > Hi, > > What I want to do is : > > acl p-static url_reg ^/context$ > acl p-dynamic url_reg ^/context/.*$ > > reqrep ^([^\ ]*)\ /context/(.*) \1\ /\2 if p-dynamic > > redirect code 301 location http://host.domain.tld/context if p-static > redirect code 301 prefix http://host.domain.tld/contex/ressource?id= if > p-dynamic > > > and then the dynamic redirection to be suffixed by the modified request. > > As you noticed, redirect are processed before reqrep and I don't know how > to design this to have it working. > > Thanks for your help > > Regards, > > > -- > Steven Le Roux > Jabber-ID : [email protected] > 0x39494CCB <[email protected]> > 2FF7 226B 552E 4709 03F0 6281 72D7 A010 3949 4CCB >

