Fix previous commit by using SERVER_NAME instead of HTTP_HOST