On Sat, Mar 31, 2012 at 06:00:05AM +0200, Baptiste wrote: > Hi, > > You're trying to insert a RESPONSE header if a REQUEST header exists. > It may not work, either never match or always match. > I mean that your acl has an undetermined state when called. > You should match something from the response to be sure it works.
In practice it will never match because when you get the response, you don't have the request anymore. That's why we'd like to finish the move from ACL to patterns and have sticky ones. In the meantime if you need to do this for only one (or very few) hosts, you can switch the request to different backends depending on the hostname and perform the rewrite in the backend. Regards, Willy

