Forum Discussion
Svevak_211593
Nimbostratus
Oct 30, 2018URL forwarding to dedicated nodes
Hello,
I am still very new to iRules, and I am trying to get the code correct for a simple URL redirect. I would like to route certain URL-paths to dedicated servers in the same pool.
For e...
Snl
Cirrostratus
Oct 30, 2018try below (not tested) assume server a - 10.1.1.1 port 8080 & server b 11.1.1.1 port 8080
when HTTP_REQUEST {
if { [string tolower [HTTP::uri] ] starts_with "/foo" } {
node 10.1.1.1 8080 }
elseif { [string tolower [HTTP::uri] ] starts_with "/bar" } {
node 11.1.1.1 8080 }
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
