Fix for RegEx based nginx configurations

Using HTTP_HOST instead of SERVER_NAME to avoid RegEx based vhost
configurations which don't produce a proper SERVER_NAME var.