Forum Discussion
Puneet_73909
Nimbostratus
Sep 09, 2009Redirection to another LB Virtual Server
Hi,
I am trying to redirect HTTP request to another Virtual Server(configured on different Load Balancer) If request comes with uri: "/abc". I need help to write an irule for same which I am unable to do so.
Thanks,
Puneet Khanna
- The_Bhattman
Nimbostratus
Hi Puneet,when HTTP_REQUEST { if { [HTTP::uri] eq "/abc" } { HTTP::redirect "HTTP://anothervirtualserverdomain.com/" } }
- Puneet_73909
Nimbostratus
CB, - The_Bhattman
Nimbostratus
well you can write that in the following waywhen HTTP_REQUEST { if { [HTTP::host] eq "int1.abc.com" } { switch -glob [HTTP::uri] { "/" { pool original_pool } "/distcache-sample" { HTTP::redirect "HTTP://anothervirtualserverdomain.com/" } } } }
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