Welcome! Log In Create A New Profile

Advanced

remove nginx from https response header

Posted by cisaksen 
remove nginx from https response header
November 16, 2015 05:25PM
nginx 1.9.5

I know how to remove or change the "nginx" string in the server field of the response header.
For http traffic modify the ../src/http/ngx_http_header_filter_module.c

But https (http2) traffic seems to be else where, anyone happen to know where? I've looked around, thought I've found once or twice - turned out nope.

Thanks
Re: remove nginx from https response header
November 16, 2015 05:37PM
See ngx_http_v2_filter_module.c;

(218 ) len += 1 + clcf->server_tokens ? ngx_http_v2_literal_size(NGINX_VER)
(411 ) *pos++ = NGX_HTTP_V2_ENCODE_RAW | (sizeof(NGINX_VER) - 1);
(412 ) pos = ngx_cpymem(pos, NGINX_VER, sizeof(NGINX_VER) - 1);

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: remove nginx from https response header
December 01, 2015 01:11PM
Thanks I'll take a look.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 72
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready