Fixed the multiple cases of HTTPS redirect and SSL Termination stats generation.