Since you already have separate pools for the site instances, would it make sense to set up dedicated VIPs also? That way you’d avoid having to assign pools based on the host.
Do you currently have a default pool? If so, you run the risk of taking down the other site(s) if the main pool doesn’t have any healthy members.
It sounds like you have two FQDNs going to the VIP: “mypage.mycompany.com” and “www.mypage.mycompany.com”. From your description it looks like you want the iRule to do two things:
Select the pool "mysite_http_pool if the client requests the home page or if the path starts with “sp”, and select “other_http_pool” for all other requests.
Couple of questions/remarks:
Do clients ever go to the home page by including the file name (e.g. “www.mypage.mycompany.com/index.html”)? If so, what is the file name of the default page (e.g. “index.html”)?
Which pool will be the default pool on the VIP?
Will it be a problem if the default pool takes down the VIP (since the other pool might still be healthy)?
OK. Just be mindful that a postback on the page would expose the filename of the page, which users may bookmark.
2/3)
If you don’t have a default pool you will not have any health information available for that VIP. If you do have a default pool the entire VIP will be taken down if the default pool goes down.
Are you using SSL or planning to use it in the future? If so you’ll want to set up dedicated VIPs.
As far as your iRule error go, they’re caused by an invalid “elseif” syntax. Firstly, you can’t have comments between the closing curly brace and the “elseif” command. Secondly, the “elseif” command needs to immediately follow the curly brace:
OK. Just be mindful that a postback on the page would expose the filename of the page, which users may bookmark.
2/3)
If you don’t have a default pool you will not have any health information available for that VIP. If you do have a default pool the entire VIP will be taken down if the default pool goes down.
Are you using SSL or planning to use it in the future? If so you’ll want to set up dedicated VIPs.
As far as your iRule error go, they’re caused by an invalid “elseif” syntax. Firstly, you can’t have comments between the closing curly brace and the “elseif” command. Secondly, the “elseif” command needs to immediately follow the curly brace:
Arie - thanks for the help on the syntax I didn’t know this. I was able to put in the code without any syntax error; the webteam is testing to see if we get the results they are looking for (looks promising).. To answer your question to number 2, we are not planning on using SSL (at least for now) and I did warn them that if in the future they wanted to use SSL we would have to use dedicated VIPs which their response was that this was only a temp rule until they migrated everything from our sun web servers to our sharepoint. Thanks for your help.