Forum Discussion
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]"
i...
Surgeon
Feb 07, 2018Ret. Employee
I would suggest.
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
}
}
elseif { [string tolower [HTTP::path]] equals "/login.jsp"} {
pool JIRA-test-pool
}
else {
pool JIRA-test-external-pool
}
}
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