AaronMLong_1021
Nov 05, 2015Cirrus
HTTP/HTTPS discrepancy for HTTP::respond iRule
Here's the relevant chunk of my iRule code:
when HTTP_REQUEST {
switch -glob [HTTP::host] {
"host.example.test" { HTTP::respond 503 content "Services are offline for maintenance.\n" }
}
}
However, I see different behaviour depending on whether I apply the iRule to HTTP or HTTPS VIP. HTTP seems to work:
[aaron@home ~]$ curl -k http://host.example.test/anything
Services are currently down for maintenance.
HTTPS, however, throws this error:
[aaron@home ~]$ curl -k https://host.example.test/anything
curl: (56) SSL read: errno -5961
Any idea what I'm doing wrong?