HTTP status codes missing description in header for proxy_pass

Maxim Dounin mdounin at mdounin.ru
Tue Jun 4 10:56:05 UTC 2013


Hello!

On Mon, Jun 03, 2013 at 07:07:50PM -0400, kgoess wrote:

> We're using nginx as a middle layer in front of our application server
> (mod_perl).  When mod_perl returns an error page, the HTTP status line is
> missing the "reason phrase" after the status code, like "Not Found", e.g.
> 
> HTTP/1.1 404
> Server: nginx/1.2.1
> ...etc
> 
> should be
> 
> HTTP/1.1 404 Not Found
> ...etc...

[...]

> Is this a bug in nginx, or a configuration issue that we can fix? The patch
> to Perlbal is simple enough, is it worth looking for a patch to nginx? Or
> did we miss something else entirely?

As soon as you proxy requests to another server - nginx just 
returns a status line as got from a backend as soon as it's able 
to recognize it.

-- 
Maxim Dounin
http://nginx.org/en/donation.html



More information about the nginx mailing list