jkirankumar1993
Feb 06, 2018Nimbostratus
Irule to divert traffic - Not working
Can someone please review my code?
rule jiradivertingtraffic{
when HTTP_REQUEST {
log local0. "Request: [HTTP::host]"
log local0. "Request: [HTTP::uri]"
log local0. "Request: [HTTP::path]"
if { [string tolower [HTTP::host]] equals "jiratest.corp.chartercom.com" } {
if {[string tolower [HTTP::uri]] contains "/rest"} {
pool JIRA-test-pool
}
}
else {
if { [string tolower [HTTP::host]] not equals "jiratest.corp.chartercom.com" } {
if { [string tolower [HTTP::path]] equals "/login.jsp"} {
pool JIRA-test-pool
}
}
else {
pool JIRA-test-external-pool
}
}
}
}