Welcome! Log In Create A New Profile

Advanced

NGINX returns 502 when Proxied Response Header Name Contains Whitespace

Posted by rumpelstilskin 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
NGINX returns 502 when Proxied Response Header Name Contains Whitespace
June 08, 2023 07:21PM
Hi,
NGINX is returning an HTTP 502 when the Upstream Header Name contains whitespace. The following error message is recording in the error log.
upstream sent invalid header: "IIS\x20..." while reading response header from upstream

The request is returned successfully from the Upstream Server with the headers listed below.
Cache-Control:
Content-Length:
Content-Type:
Server:
X-AspNet-Version:
Set-Cookie:
X-Powered-By:
IIS SERVER:
Date:

I suspect "IIS SERVER:" header is the culprit. Would anyone know how to Ignore or correct the problem? Apologies is this is duplicate but I've not been able to find a resolution.

Online Users

Guests: 195
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready