[BUGFIX] Nginx: https/http protocol detection

See pull request #172 of `PhileCMS/Phile`