Hi Willy,

If I want to rewrite both Host and URI in request, and they are also in
the match conditions, can HAProxy implement this requirement?

The ACLs are as below:
acl match_host_uri  hdr_reg(Host) www.example.com
ack match_host_uri  /example.html

But the reqrep should be used twice to rewrite both Host and URI
reqrep <expresion for rewritting host> if  match_host_uri
reqrep <expresion for rewritting URI > if  match_host_uri

Since Host has been rewritten in firest reqrep directive, as I know, the
second reqrep will not be executed as the match will fail.

-- 
Best Regards,
Godbach

Reply via email to