﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
538	Server origin header not passed through the proxy	pornel.net		"The Server header is intended to indicate origin server. [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.38 If the response is being forwarded through a proxy, the proxy application MUST NOT modify the Server response-header].

IMHO the correct behavior should be to pass the header by default and perhaps add nginx to the Via header.

To reproduce:


{{{
    server {
        listen       8001;
        server_name  localhost;
        location / {
          proxy_pass        http://localhost:8002;
        }
    }
}}}


{{{
printf 'HTTP/1.0 200 OK\r\nServer: origin\r\n\r\n' | nc -l 8002 &
printf 'GET / HTTP/1.0\r\n\r\n' | nc localhost 8001
}}}

Actual output:

{{{
HTTP/1.1 200 OK
Server: nginx/1.5.12
Date: Thu, 10 Apr 2014 12:57:54 GMT
Connection: close
}}}

Expected:

{{{
HTTP/1.1 200 OK
Server: origin
Via: 1.0 nginx/1.5.12
Date: Thu, 10 Apr 2014 12:57:54 GMT
Connection: close
}}}"	defect	closed	trivial		nginx-core	1.5.x	wontfix			Darwin .local 13.1.0 Darwin Kernel Version 13.1.0	"nginx version: nginx/1.5.12
built by clang 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
TLS SNI support enabled
configure arguments: --prefix=/usr/local/Cellar/nginx/1.5.12 --with-http_ssl_module --with-pcre --with-ipv6 --sbin-path=/usr/local/Cellar/nginx/1.5.12/bin/nginx --with-cc-opt='-I/usr/local/Cellar/pcre/8.34/include -I/usr/local/Cellar/openssl/1.0.1f/include' --with-ld-opt='-L/usr/local/Cellar/pcre/8.34/lib -L/usr/local/Cellar/openssl/1.0.1f/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --pid-path=/usr/local/var/run/nginx.pid --lock-path=/usr/local/var/run/nginx.lock --http-client-body-temp-path=/usr/local/var/run/nginx/client_body_temp --http-proxy-temp-path=/usr/local/var/run/nginx/proxy_temp --http-fastcgi-temp-path=/usr/local/var/run/nginx/fastcgi_temp --http-uwsgi-temp-path=/usr/local/var/run/nginx/uwsgi_temp --http-scgi-temp-path=/usr/local/var/run/nginx/scgi_temp --http-log-path=/usr/local/var/log/nginx/access.log --error-log-path=/usr/local/var/log/nginx/error.log --with-http_gzip_static_module"
