Opened 8 years ago
Closed 8 years ago
#1012 closed enhancement (duplicate)
Allow changing 'Server' header in HTTP/2
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | nginx-core | Version: | 1.9.x |
Keywords: | http2, h2, headers | Cc: | |
uname -a: | Linux cc33db1e88df 4.4.14-moby #1 SMP Wed Jun 29 10:00:58 UTC 2016 x86_64 Linux | ||
nginx -V: |
nginx version: nginx/1.11.2
built by gcc 5.3.0 (Alpine 5.3.0) built with OpenSSL 1.0.2 (compatible; BoringSSL) (running with BoringSSL) TLS SNI support enabled configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --with-cc-opt='-g -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -I ../boringssl/.openssl/include/' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -L ../boringssl/.openssl/lib' --conf-path=/etc/nginx/nginx.conf --error-log-path=/dev/stderr --http-log-path=/dev/stdout --pid-path=/var/run/nginx/nginx.pid --lock-path=/var/run/nginx/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --user=nobody --group=nobody --with-http_ssl_module --with-http_realip_module --with-http_gunzip_module --with-http_gzip_static_module --with-threads --with-stream --with-stream_ssl_module --with-file-aio --with-http_v2_module --with-http_spdy_module --with-ipv6 --with-pcre --with-pcre-jit --without-http_ssi_module --without-http_userid_module --without-http_autoindex_module --without-http_status_module --without-http_geo_module --without-http_split_clients_module --without-http_referer_module --without-http_proxy_module --without-http_uwsgi_module --without-http_scgi_module --without-http_memcached_module --without-http_limit_conn_module --without-http_limit_req_module --without-http_empty_gif_module --without-http_browser_module --without-http_upstream_hash_module --without-http_upstream_ip_hash_module --without-http_upstream_least_conn_module --without-http_upstream_keepalive_module --without-http_upstream_zone_module --add-module=/tmp/ngx_brotli_module |
Description
The 'server' header has been hardcoded for HTTP/2 with u_const nginx
, an HPACK representation of string 'nginx'. This was done in commit '531e6fbfd6c785a7b42c285c12d3f0721cc989c7'. There should be an easy way to change name server to something else.
Note:
See TracTickets
for help on using tickets.
Duplicate of #1011.