Forum Discussion
lior
Dec 13, 2021Nimbostratus
Assign specific uri to a server\node in pool
Hi, I'm new at Irules and I need help I'm trying to create an I rule that searches for a server name in the URI ("server1/2/3") and match it to the IP address of the server in the pool I crea...
- Dec 15, 2021
You can create pool for server1 and server2 and use all services under service port while adding node. Reference that pool in the iRule and it should work.
when HTTP_REQUEST { set uri [string tolower [HTTP::uri]] if { $uri contains "server1" } { pool pool1 } elseif { $uri contains "server2" } { pool pool2 } else { pool test1 } }
lior
Dec 19, 2021Nimbostratus
it works thank you
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