Problem this snippet solves: Triggered when a virtual server has proxy-mode explicit set and one of the following two scenarios are true:
the request has a full uri of the form http://hostname:po...
I want to insert header with Explicit HTTP Proxy.
Can I use both "HTTP::header insert " and "HTTP::proxy enable" in the event of "HTTP_PROXY_REQUEST"?
Like this:
if { [HTTP::host] contains "www.example.com" } {
HTTP::header insert "X-Original-Header: XYZ"
HTTP::proxy enable
} ...