复制代码代码如下:
scr/core/nginx.conf
#define NGINX_VERSION "1.4.7"
#define NGINX_VER "nginx/" NGINX_VERSION
修改为:(其实版本号也可以随意修改)
复制代码代码如下:
#define NGINX_VERSION "1.4.7"
#define NGINX_VER "jdws/" NGINX_VERSION
其实修改上面一个大部分就会生效!!!
复制代码代码如下:
/src/http/ngx_http_header_filter_module.c (HTTP ResponseHeader)
static char ngx_http_server_string[] = "Server: nginx" CRLF;
修改为:
复制代码代码如下:
static char ngx_http_server_string[] = "Server: jdws" CRLF;
/src/http/ngx_http_special_response.c
static u_char ngx_http_error_tail[] =
"
"