ing_user_202066
May 13, 2015Nimbostratus
redirect irule for SSL VIP
Hi,
so I'm using an irule to redirect traffic to a static html page (for a planned maintenance).
On the "port 80" VIP, I apply this irule:
when HTTP_REQUEST { if { [HTTP::host] contains "blah" } { HTTP::redirect "" }
}
...and anyone who hits the vip with "blah" in the request gets properly redirected. Great.
But, I also allow HTTPS connections - users will hit that site via HTTPS as well. But the HTTP_REQUEST doesn't work for the https hits. I get an ERR_CONNECTION_RESET error on the web page. So I'm assuming right now that I need a different rule for the HTTPS requests that come in, so I get the same desired redirect regardless of whether the request comes in via HTTP or HTTPS.