Cómo modificar el nombre de la versión de Nginx para disfrazar cualquier aplicación de servidor web-servidor Linux
Copia el código de la siguiente manera:
scr/core/nginx.conf
#define NGINX_VERSION "1.4.7"
# define NGINX_VER "nginx/" NGINX_VERSION
Modificar a: (De hecho, el número de versión también se puede modificar a voluntad)
Copia el código de la siguiente manera:
#define NGINX_VERSION "1.4. 7"
#define NGINX_VER "jdws/" NGINX_VERSION
De hecho, modificar la mayor parte de lo anterior tendrá efecto. ! !
Copia el código de la siguiente manera:
/src/http/ngx_http_header_filter_module.c (HTTP ResponseHeader)
static char ngx_http_server_string[] = "Servidor: nginx" CRLF ;
Modificar a:
Copiar el código de la siguiente manera:
static char ngx_http_server_string[] = "Servidor: jdws" CRLF
<; p> /src/http/ngx_http_special_response.cstatic u_char ngx_http_error_tail[] =
"lt;hrgt;lt;centergt;nginxlt;/centergt;"
"lt;/bodygt;" CRLF
"lt;/htmlgt;" CRLF
Modificar a:
Copia el código de la siguiente manera:
static u_char ngx_http_error_tail[] =
"lt;hrgt;lt;centergt;jdwslt;/centergt;" CRLF
"lt;/bodygt;"
"lt;/htmlgt;" CRLF