Forum Discussion
i 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 Back end Server 172.16.X.X I have to maintain this Webservice as it is and required to allow the following additiona links like this. www.abc.com/xyz/apply www.abc.com/xyz/judge www.abc.com/xyz/admin but these new additional links webcontent is going to host on a different Back end Server and NOT with the same server of www.abc.com Webserver..
please guide me what are the config steps and associated irules (If Required) for implementing this. Your recommenadtions as well....
9 Replies
- nitass
Employee
e.g.
sol9800: Using an iRule to load balance HTTP requests to multiple pools
sol15097: Using the Local Traffic Policies feature to load balance HTTP requests to multiple pools
sol13753: Using HTTP Classes to load balance HTTP requests to multiple pools
- Renjith_p_Mathe
Nimbostratus
Thanks ,,.. will go throgh these docs
- nitass_89166
Noctilucent
e.g.
sol9800: Using an iRule to load balance HTTP requests to multiple pools
sol15097: Using the Local Traffic Policies feature to load balance HTTP requests to multiple pools
sol13753: Using HTTP Classes to load balance HTTP requests to multiple pools
- Renjith_p_Mathe
Nimbostratus
Thanks ,,.. will go throgh these docs
- Vitaliy_Savrans
Nacreous
when 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_Mathe
Nimbostratus
Thnaks will check it - Narendren_S_658
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_16
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=-
Recent Discussions
Related Content
* 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