Forum Discussion
Jayasudha_37840
Jan 30, 2019Nimbostratus
Creation of an irule
Hi,
I need to set up configuration as below:
URL -> Node
https://abc-group.com/backup -> https://abc-group.com/loadbalancer -> https://abc-group.com/operations -> https://abc-group.com/appliancehousing ->
But already VIP is exist on f5 with the pool having different node with other service.
Please suggest me how to write an irule for the above case?
- Samir_Jha_52506Noctilucent
You can write iRule some thing like below.
when HTTP_REQUEST { set uri [string tolower [HTTP::uri]] if { [string tolower [HTTP::host]] equals "abc-group.com" } { switch -glob $uri { "/backup*" - "/loadbalancer*" - "/operations*" - "/appliancehousing*" { HTTP::redirect "http://xyz:8089$uri" } } } }
- Jayasudha_37840Nimbostratus
Thank you...it worked out...
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