Forum Discussion
Roman_80473
Nimbostratus
Oct 10, 2011Error sending traffic to the pool
Hi folks,
I need to redirect traffic to different pools based on user uri WITHOUT CHANGING THE URL. So, if the user types www.domain.com or www.domain.com/start or /landing or /login, I shou...
Michael_Yates
Nimbostratus
Oct 10, 2011Hi Roman,
You could do something like this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/start*" -
"/landing*" -
"/login*" { pool login_pool }
default { pool utility_pool }
}
}
Is there a way to send traffic to a specific POOL or VIP with the uri different from what the user has typed?
Yes. Here are two that can be utilized to manipulate the URI that is being sent to the server while masking the change to the Client:
HTTP::uri - http://devcentral.f5.com/wiki/iRules.HTTP__uri.ashx
URI::path - http://devcentral.f5.com/wiki/iRules.URI__path.ashx
Hope this helps.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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