abhy201
Mar 19, 2018Nimbostratus
Content Switching for URL using iRule and different Pools
I am trying to create a basic iRule to switch content. I am using single Vserver and need to switch content for 2 different Http URL's using 2 different pools with associated backends servers.
URL1. "abc.com" URL2. "xyz.com"
URL1 needs to use Pool1 and url2 needs to use Pool2.
Looking at some of your previous questions, I created the below iRule. Can anyone please confirm if this is accurate or something needs to be changed.
when HTTP_REQUEST { switch -glob [string tolower [HTTP::host]] { "abc.com" { pool pool_1} "xyz.xom" { pool pool_2} } }