proxy_http_version 1.1; # Clearing the Connection header is required for keepalives from the load balancer # http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive proxy_set_header Connection ""; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $trusted_x_forwarded_proto; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-Ip $trusted_remote_addr; proxy_set_header X-Proxy-Misconfiguration $x_proxy_misconfiguration; proxy_next_upstream off; proxy_redirect off;