How to fix "DisallowedHost at / Invalid HTTP_HOST header:. The domain name provided is not valid according to RFC 1034/1035." error in Django?
- Don't add
include proxy_params;
in Django application's NGINX configuration file. - Cross-check the Django application's NGINX configuration. If
include proxy_params;
line added, remove it. - proxy_params(
/etc/nginx/proxy_params
) file haveproxy_set_header Host $http_host;
line already. It will overrideproxy_set_header Host $host;