Correctly set the `HTTPS` variable in Nginx for HTTPS connections, even without setting `ssl on`. Fixes issue #401.