Fix HTTP_HOST for routes with subdomains for nginx