Forum Discussion
Rick_Deerberg_2
Nimbostratus
Jun 14, 2006How to write an iRule to redirect to multiple uri's and to specific TCP Port (81)
I am a newbie when it comes to load balancing and iRules.
I have a user who wants to the following configured.
Default or main page/site
https://default.domain.com/
Sit...
Rick_Deerberg_2
Nimbostratus
Jun 14, 2006Hopefully, this may help explain what I'm trying to do.
The iRule below, for the most part, does what I want. However, instead of using specific IP addresses, I want to use a pool so I can load balance. The problem I'm running into is that when I use a pool for site-A or site-B it fails to append the /site-A or :81/logon/logon.html to the end of the uri.
Thanks
when HTTP_REQUEST {
if { [HTTP::uri] contains "site-A" } {
redirect to http://2.2.2.2/site-A }
elseif { [HTTP::uri] contains "site-B" } {
redirect to http://1.1.1.1:81/logon/logon.html }
else { pool Default_Pool}
}
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