Forum Discussion
Cribby_130403
Nimbostratus
Jul 16, 2014iRule URI to Pool before iRule with HTTP to HTTP Redirect
Hello,
I am trying to create and stack a simple set of iRules but I don't seem to be getting the desired results. Basically I have the following setup.
1.) A VS setup for HTTPS for home.m...
Cribby_130403
Nimbostratus
Jul 17, 2014Hello David,
Thanks for the reply.
That does make sense. What if on the first part of the combined iRule where is looks for the match to send to the pool I want it to look for a contains and not a specific match? For example if it contains either home-nonssl.mysite.com or /mydata1 it would send it to the pool, if not then it would send to default:
home-nonssl.mysite.com/mydata1
pool MYSITE_NON-SSL_Pool-80
- James
David_Larsen_23
Jul 18, 2014Historic F5 Account
So in the rule we are only matching on the Host name of the URL [HTTP::host] and not on the URI (which would be [HTTP::uri]) portion of the URL. That way we only have to match on the domain name. If you have other domain names that start with home-nonssl.mysite (such as home-nonssl.mysite.mobi) you can wild card it with a * and modify the switch command with the -glob such as:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"home-nonssl.mysite*" {
pool MYSITE_NON-SSL_Pool-80
}
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