Forum Discussion
iRule redirect and specify what Pool to go to
Hello Arie -
Yes you are correct, that is exactly what I am trying to accomplish with the iRule. To answer your questions:
1. Client should not be able to get to the homepage by including the filename unless they bookmark the page.
2 and 3 - I was not going to setup a default pool, I was just going to let the iRule make the decision - do you think I need to have a default pool.
This is an iRule that the web team suggested, I am getting syntax errors so I'm playing around with it to see if i can get it to work.
when HTTP_REQUEST {
Redirect non www traffic to www
if {
([HTTP::host] starts_with "mypage.mycompany.com")
}
{
HTTP::redirect ]
}
Send home page to sharepoint pool
elseif {
([HTTP::uri] matches "/") || ([HTTP::uri]matches "")
}
{
HTTP::redirect http://www.mypage.mycompany.com/sp/
}
Send any traffic with sp to the sharepoint pool
else if {
([HTTP::uri] starts_with "/sp/") || ([HTTP::uri] matches "/sp")
}
{
pool sp_http_pool
}
Send any other traffic to sun java webserver pool
else
{
pool sunjava_http_pool
}
}
Any help is greatly appreciated.
Joanna
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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