Added a health check befor enforcing SSL