Forum Discussion
Ramesh_Babu
Nimbostratus
Nov 15, 20192 different URI call to same server & different port irule creation
Hi Team, I needs to create irule for the below request, please suggest me how to do, Calls https://i0.test.com should to go real server with http://server01/Base/Arx/ Calls https://...
Samir
MVP
Nov 15, 2019Try this irule.. Hope it will help.
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/Nas" } {
HTTP::uri "/Nas"
node 172.x.x.x 8080
} elseif {
HTTP::uri “/Base/Arx/"
node 172.x.x.x 80
}
}
- TimRikerNov 15, 2019
Cirrocumulus
Replace the “/Base with "/Base
ie: wrong quote.
I'd suggest adding a "default" case as well to avoid issues with existing connections
https://devcentral.f5.com/s/articles/oneconnect-for-my-irule
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