Hello,
Can you explain in more detail what you are trying to do? It sounds like you have two VIPs on the same IP address: one on :80 and one on :443? Which VIP are you applying the redirect rule to?
If you're apply it to the HTTP VIP, it should work without any issues, redirecting all requests to pinocchio.com to
http://www.disney.com.
If you're applying it to the HTTPS VIP, the client would be making a request to
www.pinocchio.com but get the SSL cert for
www.disney.com presented. This would cause a hostname mismatch error and generate a prompt to accept the cert by the browser.
To get a better idea of what's happening, try adding a logging statement to the rule. You may also want to set the host header value to lower case if the client could send a request in mixed case:
when HTTP_REQUEST {
log local0. "client [IP::client_addr] requested [HTTP::host][HTTP::uri]"
if { [string tolower [HTTP::host]] contains "pinocchio.com" } {
HTTP::redirect "http://www.disney.com"
}
}
Aaron