#807 closed defect (wontfix)
ngx_http_rewrite_module duplicate Server header
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | 1.9.6 |
Component: | nginx-module | Version: | 1.9.x |
Keywords: | rewrite server header duplicate | Cc: | gcc, version, 4.8.2, (Ubuntu, 4.8.2-19ubuntu1) |
uname -a: | Linux vm 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | ||
nginx -V: | ./auto/configure --with-ipv6 --prefix=. --sbin-path=nginx --conf-path=nginx.conf --error-log-path=logs/error.log --pid-path=nginx.pid --with-pcre |
Change History (3)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
The add_header
directive can be used to add headers, but it doesn't allow to overwrite existing/standard headers, including the Server header (the only exceptions are Last-Modified and ETag).
To control what nginx returns in the Server header there is the server_tokens directive. If it's not enough for you - well, we're sorry, but that's not something we like and not something we are going to allow. The link above suggests a bunch of workarounds you can use if you don't care about nginx, nginx developers, and our feelings.
comment:3 by , 9 years ago
Hi!
Thank you all, for the response.
I do care about nginx, nginx developers, and their feelings :)
I wanted to use this little trick for debug purpose. (Than I found this minor bug.)
I promise, next time I will not report anything...
Have a nice day.
You can't overwrite nginx 'Server' header without editing source.
See: http://stackoverflow.com/questions/246227/how-do-you-change-the-server-header-returned-by-nginx
However I still think this is a bug, but they won't change it.