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 currently have two virtual servers set up for this, one for Port 80 traffic, and the other for Port 443 traffic.
I would like all requests that come in for the host domain http://www.abc.com to be redirected to https://www.abc.com, and also redirected to whichever pool cooresponds with the suffix (https://www.abc.com/production1 >>> pool_1, while https://www.abc.com/test1 >>> pool_2)
I'm new to creation of IRules and was hoping to know, if this is possible, and if there are any suggestions / sample irules anyone is aware of that could help with this cause.
Thanks in advance!
1 Reply
- Chris_Seymour_1Historic F5 AccountThis should be no problem. First you will want to redirect all traffic with the below simple iRule that is available on the codeshare.
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