Nginx SSL fixes

The host header is empty must be something like this for the redirect.