Forum Discussion
dennypayne
Jun 30, 2006Employee
Chris,
If the requests for www.domain.com are always port 80 and requests for secure.domain.com are always going to come in 443 then you should not need a rule if you set it up as hoolio described. The port definition on each VIP will process the traffic to the correct pool (understand that 10.1.1.2:80 and 10.1.1.2:443 are separate VIP's even though they have the same IP and so they may be assigned to separate pools).
If you are concerned that requests for secure.domain.com are going to come in port 80, then you may address that with an iRule to perform a redirect.
You would apply the rule to the port 80 VIP, something like this (syntax not validated):
when HTTP_REQUEST {
if { [HTTP::host] equals "secure.domain.com" } {
HTTP::redirect https://secure.domain.com
} else {
pool pool_1
}
}
actually if pool_1 is the default you don't even really need the else statement, if the "if" doesn't fire, the rule will just fall out to the default pool on the port 80 VIP.
Hope that helps,
Denny