Forum Discussion
Cribby_130403
Jul 17, 2014Nimbostratus
Hello 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_23Jul 18, 2014Historic F5 AccountSo 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 }