Siraj_Arab_1610
Mar 22, 2016Nimbostratus
How to create iRule to respond with Maintanence Page for HTTPS site
I have created a maintenance page using html - iFile configurations as below:
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1} {
switch [string tolower [HTTP::uri]] {
"/" {
HTTP::respond 200 content [ifile get Maintenance] "Content-Type" "text/html"
}
"/logo.png" {
HTTP::respond 200 content [ifile get logo] "Content-Type" "image/png"
}
"/background-pattern.png" {
HTTP::respond 200 content [ifile get background-pattern] "Content-Type" "image/png"
}
}
}
}
It works great with HTTP Site, no problem there.
But when I apply same iRule to VS running HTTPS service, it fails to generate the sorry page. I am doing SSL Bridging, and not offloading ( This cant be changed to offloading). It works when I opt for offloading though.
It would be a great help if anyone could make it working for HTTPS site with SSL Bridging enabled.