Forum Discussion
Michael_107360
Cirrus
Jun 27, 2015pool selection with 301 redirect
The goal is for sessions coming into the virtual server on port 80 depending on the uri will stay on port 80 and be directed to a specific pool. However at the end if the uri is not matched they will...
Michael_107360
Cirrus
Jun 27, 2015Sorry for the missing format....
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host][HTTP::path]] {
"www.companya.com/mobileapp*" -
"www.companya.com/content/files*" {pool V102.57-P11230}
"investor-relations.companya.com/" -
"companyacareer.com/" -
"joincompanya.com/" -
"quotewi/" -
"costcoautohome.com/" -
"library.companya.com/" -
"companyainsurance.com/" -
"banking-credit.companya.com/" -
"budgeting-investing.companya.com/" -
"financial-goals.companya.com/" -
"financial-planning.companya.com/" -
"insurance.companya.com/" -
"investment.companya.com/" -
"mortgages-home-loan.companya.com/" -
"retirement.companya.com/" -
"companyaappupdate.com/" { }
default
{HTTP::respond 301 "Location" "https://www.companya.com[HTTP::uri]"}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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