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...
Deb_Allen_18
Jun 14, 2006Historic F5 Account
I'm not sure I fully understand what you're trying to do, so let's try to refine the problem description:
When the uri equals https://default.domain.com
After authenticating, send them to the Default PoolWhat is meant by "after authenticating"? Unless you're using our PAM module to authenticate on LTM rather than the servers, you'd need to send the request somewhere for authentication. If authentication is handled by the servers themselves, all requests for that site should be forwarded to the Default pool. If auth is offloaded elsewhere, the servers will have to manage that communication. (Redirect to an auth server and back to the originally-requested URI is a SSO common approach)
When the uri equals https://default.domain.com/siteA
After authenticating, send them to pool SiteA Pool, and add /siteA to the end of the uriSame issue here re: auth, and also, if the URI path in the request already contains /siteA, it would appear that you could simply check for /"siteA" in the URI string and choose the pool accordingly.When the uri equals https://default.domain.com/siteB
Direct them to pool SiteB Pool, and add /logon/logon.html to the end of the uri and make sure they are directed to TCP port 81 For this one, I think you'd need to be able to differentiate an already-authenticated request from one that is not, and a redirect to the login page + logic to choose the correct pool containing port 81 nodes may be the best approach.
Once we have a better idea what exactly you need to do, we (hopefully) can point you in the right direction. You may be able to follow Support's suggestion to use separate virtuals and simplify any rule requirements.
/deb
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