Forum Discussion
Brett_Channon_1
Nimbostratus
Feb 23, 2007Redirect to a pool and change port
Hi all,
After having not looked at irule's for a while i'm somewhat slow at getting back in to it and so would appreciate some help.
I want to take a port 80 HTTP request and if the uri matches xxx then to rewrite the request to go to port 9999 on a a set of servers in a pool.
I can write the irule to do the uri check and pool direction but am unsure about the changing of the destination port (i have already set up the nodes so they are listening on that port in that specific pool)
Any ideas appreciated.
Thanks
Brett
- JRahm
Admin
you could create another pool that has members defined with port 9999...when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains "xxx" } { pool newPool } }
when LB_SELECTED { if { [string tolower [HTTP::uri]] contains "xxx" } { pool [LB::server pool] member [LB::server addr] 9999 } }
- Brett_Channon_1
Nimbostratus
Thanks.
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