Forum Discussion
TridipLenka_316
Nimbostratus
Jul 12, 2017iRule redirection to different port
i have configured a web service as below
VIP : abc.com:443
pool members:
10.100.10.1:8843
10.100.10.2:8843
but i want to redirect if any user comes with extension "xyz" as https://abc....
Lee_Sutcliffe
Nacreous
Jul 14, 2017You'll need to modify the log to output the URI that is captured in the else condition. Once a match is made in an 'if' statement it breaks out and stops processing further conditions so the 'else' should not be matched if it was previously matched in the preceding 'if'
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/xyz" } {
log local0. "If condition matched with URI:[HTTP::uri]"
Pool abc_pool
} else {
log local0. "else condition matched with URI:[HTTP::uri]"
pool Default_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