Forum Discussion
steve_88008
Nimbostratus
13 years agoredirect to pool based from uri
i know this topic has been done to death and I have configured irules of this fashion before, but this one has me pinned.
scenario
There is a landing page that hosts two links. one link ...
Michael_Yates
Nimbostratus
13 years agoHi Steve,
"the host name needs to remain constant. it can't be changed to something like the server name."
There are several ways that you could tackle this, but if the Hyperlinks on the page would otherwise redirect them to a different host I would suggest using a Stream Profile to change the Host Value in the Hyperlink (cleanest way that comes to mind. If you try URI Masking that can get messy and tricky).
You can apply them in two different ways:
1. Create a custom stream profile and apply it to your Virtual Server.
2. Create a "blank" stream profile and apply it to your Virtual Server and then use an iRule to perform the actual replacements.
The first option is cleaner (if you want more details on the first option just let us know), but you can learn more about the second here:
LTM stream profile: Multiple replacements & regular expression
STREAM::expression
"if i use src addr as a persistence method and check the match fields that you suggest. won't the connection persist to the default pool?"
If you modify the Host Value of each URL, yes the connections would all go to the default pool applied to the Virtual Server unless you use an iRule to split the traffic to go to different pools (based on the URI or some other value). Once they are directed to go to different pools, then the source_addr persistence would send the traffic to the same server (if that server is a member of that pool).
There is a good write-up on how source_addr persistence works here: Enabling Session Persistence
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