Tweaked nginx protocol check so it actually works.  Added insecure protocol detection.