Forum Discussion
1 Reply
Sort By
- You could use an if statement like this:
when HTTP_REQUEST { if { [HTTP::host] contains "npg.nature.com" } { pool pressandgateway } elseif { [HTTP::host] contains "press.nature.com" } { pool pressandgateway } else { discard } }
when HTTP_REQUEST { switch -glob [HTTP::host] { "*npg.nature.com*" - "*press.nature.com*" { pool pressandgateway } default { discard } } }