Forum Discussion
jba3126
Aug 08, 2011Cirrus
Select Pool Based on URI with Host Rewrite
Hi All, In short we are going from SharePoint 2007 to 2010. To ease the pain of migrating sites I suggested we use the F5 LTMs to redirect based on the URI. I attempted this with a http class until I ...
Kevin_Davies_40
Aug 10, 2011Nacreous
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/sites/dts" } {
Rewrite host header value and select pool
HTTP::header replace Host www.xyz.com
pool sharepoing2007pool
}
else {
pool sharepoint2010pool
}
}
You pretty much had it... just left a switch statement in that you didn't need anymore 🙂 For robustness I added a lowercase conversion.
Jarvil
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