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://...
Nov 15, 2019
Hi Ramesh,
Can you try this?
when HTTP_REQUEST {
if { [HTTP::host] equals "i0.test.com" } {
switch -glob [HTTP::uri] {
"/" {
HTTP::uri "/Base/Arx"
node server01-ip 80
}
"/Nas" {
node server01-ip 8080
}
}
}
}
Samir
MVP
Nov 15, 2019-glob: allow string pattern matching. It will loop in condition-1, Without glob it will work well.
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