I want to create redirect for all HTTP traffic to HTTPS.
I have created:
add responder action a-resp-http-https redirect "\"https://\"+HTTP.REQ.HEADER(\"Host\").HTTP_HEADER_SAFE+HTTP.REQ.URL.PATH_AND_QUERY.HTTP_URL_SAFE" -responseStatusCode 302
add responder policy p-resp-http-https "HTTP.REQ.URL.PROTOCOL.EQ(\"http\")" a-resp-http-https
bind responder global p-resp-http-https 100 -type OVERRIDE
But responder policy don't work.
If I rewrite RP as:
add responder policy p-resp-http-https HTTP.REQ.IS_VALID a-resp-http-https
then redirect work good, but all other traffic didn't fall into the LB vservers.
How can I correctly check HTTP protocol in responder policy?
NS11.1: Build 52.13.nc