Forum Discussion
Renjith_p_Mathe
Nimbostratus
May 27, 2014i Rule for Traffic rediriction
Hi
Please assist me on the config setup and i rule for the below requirement.
I have one website www.abc.com is published via F5 and its working fine.
Lets Say Its Virtual server 192.168.X.X and...
Vitaliy_Savrans
Nacreous
May 27, 2014when HTTP_REQUEST {
if { [HTTP::uri] ends_with "/apply" } {
node 10.1.1.1
} elseif { [HTTP::uri] ends_with "/judge" }{
node 10.1.1.2
} elseif { [HTTP::uri] ends_with "/admin" }{
node 10.1.1.3
} else {
pool html_pool
}
}
The_Bhattman_16
Nimbostratus
Jun 03, 2014Perhaps Switch statements will help
[code]
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"*apply*" { node 10.1.1.1 }
"*judge*" { node 10.1.1.2 }
"*admin*" { node 10.1.1.3 }
default { pool html_pool }
}
}
[/code]
I hope this helps
-=Bhattman=-
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
