Forum Discussion
dsanders1979_24
Nimbostratus
Jul 03, 2007Issue redirecting from HTTP to HTTPS and then balance to different pools based on suffix
I have a scenario where I have the same base URL, however multiple websites with different names, i.e. www.abc.com/production1/enhancedlogin.asp , and www.abc.com/test1/enhancedlogin.asp.
I ...
Chris_Seymour_1
Jul 06, 2007Historic F5 Account
This should be no problem. First you will want to redirect all traffic with the below simple iRule that is available on the codeshare.
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
Next you will need the commands to direct the client based on their URI to the correct pool
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "production1" } {
pool pool1
}
elseif { [HTTP::uri] starts_with"test1" } {
pool pool2
}
}
Good luck!
obi chris kenobi
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