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
}
}
- Renjith_p_MatheMay 27, 2014
Nimbostratus
Thnaks will check it - Narendren_S_658Jun 03, 2014
Nimbostratus
Hi, in the conditional statement i would suggest to use "contains" instead of "ends_with". It is not necessary that the keyword always need to be in the end of the uri. Hope you understand. - The_Bhattman_16Jun 03, 2014
Nimbostratus
Perhaps 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=- - Renjith_p_MatheJun 08, 2014
Nimbostratus
Thanks....
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
