GavinW_29074
Jan 03, 2012Nimbostratus
CLIENTSSL_HANDSHAKE without Client SSL profile???
Hi there,
I'm trying to set-up a generic ProxyPass rule to support both HTTP and HTTPS connections...
Currently, I've added the following line to the 'CLIENT_ACCEPTED' section:
set proto "http"
I've then added the following code block:
when CLIENTSSL_HANDSHAKE {
There was a client side SSL handshake, so update the variable
set proto "https"
}
I then use this to do a redirect further down:
Perform the default redirect.
HTTP::redirect "$proto://[HTTP::host]$rurl"
However when trying to apply this rule to a Virtual without a Client SSL Profile, I get the following error:
CLIENTSSL_HANDSHAKE event in rule (/Common/ProxyPass) requires an associated CLIENTSSL profile on the virtual server
Is there any way around this?
What alternatives have I got to reliably check the connection protocol?
Cheers
Gavin