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

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