M_Links_with_N_
Aug 28, 2015Nimbostratus
Connection Reset When Redirecting From HTTPS to HTTP
I have a virtual server performing client SSL offloading for https://www.xyz.com and its URIs. A separate virtual server is configured for apps listening on port 80.
Requests to https://www.xyz.com/test are required to be redirected to port 80. The iRule below is applied to the 443 vs to satisfy the requirement:
when HTTP_REQUEST {
set hostname [string tolower [HTTP::host]]
set subdir [string tolower [HTTP::uri]]
if { ($subdir contains "/test") } {
HTTP::redirect "http://$hostname$subdir"
}
}
All 443 hits to "/test" result in connection resets. I've confirmed the 80 vs is responding as expected to HTTP "/test" requests and have reached out to the application owner regarding possible changes on their end, as the above solution was working earlier this week and I have not made changes to the aforementioned virtual servers.
Thank You.