I have an SSL Virtual server that terminates the SSL session and then reencrypts the session before being forwarded to a pool of web servers. The same certificate that resides on the web server resides on the F5 BIGIP 9.x. In normal circumstances, this works fine.
Now I want to define an IRule that says if the URI of the request contains a certain call to redirect the request to a different pool that is non-ssl
Here is my current IRule
when HTTP_REQUEST {
if { [HTTP::uri] contains “/cgi2/admin”} {
pool acuweb04_pool
} else {
HTTP::redirect "https://test.domain.com/cgi-bin/mcw000.cgi
}
}
Most of the original request are HTTPS
The virtual server that uses this IRule has a pool that has two servers at port 443
The acuweb04_pool has a server that is at port 80
The HTTP_REQUEST does not seem to work for this virtual server at port 443, if I have another virtual server at port 80 it seems to work OK. Can I write this for HTTPS Request? When I change the HTTP to HTTPS it get an error when trying to update the rule