iRules Recipe 3: Pool and SNAT Selection by Host Header Value
The Problem
You manage a number of web sites, and they are spread across servers in several different pools. You want to use a single public IP for all of these, so you need to make a pool selecti...
Updated Jun 06, 2023
Version 2.0VernonWells
Employee
Joined August 23, 2012
nov1ce_120072
Oct 24, 2018Nimbostratus
Thank you! And to extend it - how to perform http to https redirection at the same time? We do this with the following iRule attached to the VIP:
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
Do we need to keep it as a second iRule?