Forum Discussion
jkirankumar1993
Nimbostratus
Feb 08, 2018irule to divert traffic - Not Working
when HTTP_REQUEST {
set referrer_host [URI::host [HTTP::header value Referer]]
if { $referrer_host equals "jiratest.corp.chartercom.com"} {
if { [string tolower [HTTP::uri]] contains "/rest/" } {...
Lee_Sutcliffe
Nacreous
Feb 08, 2018Hi, you have a syntax error "not equals" is not valid. Please try the following:
when HTTP_REQUEST {
set referrer_host [URI::host [HTTP::header value Referer]]
if { $referrer_host equals "jiratest.corp.chartercom.com"} {
if { [string tolower [HTTP::uri]] contains "/rest/" } {
pool JIRA-test-pool
}
}
if { !($referrer_host equals "jiratest.corp.chartercom.com") } {
if { [string tolower [HTTP::uri]] contains "/rest/" } {
if { [string tolower [HTTP::uri]] equals "/login.jsp" }{
pool JIRA-test-pool
} else {
pool JIRA-test-external-pool
}
}
}
pool JIRA-test-pool
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
