Welcome! Log In Create A New Profile

Advanced

Renaming server response in 1.3.x not same as 1.2.x?

August 28, 2012 07:33PM
In nginx 1.2 & 1.3 you can modify the source to change the name:

src/http/ngx_http_header_filter_module.c (lines 48 and 49):

static char ngx_http_server_string[] = "Server: Not Nginx" CRLF;
static char ngx_http_server_full_string[] = "Server: Not Nginx/1.0" CRLF;

Renaming those and recompiling the source changes the server response name in nginx 1.2.

However doing this in 1.3 does not seem to change the name. It still says nginx/1.3.5. With server_tokens off; it still just says nginx.

How can I change the server name in 1.3 without installing the 3rd party addon "headers more"? I want to compile from source.
Subject Author Posted

Renaming server response in 1.3.x not same as 1.2.x?

nano August 28, 2012 07:33PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 239
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready