- context http server_tokens off;关闭显示的nginx版本号 (error_message)错误返回信息,(response header)响应返回头
- 更改服务器名称
vi src/http/ngx_http_special_response.c
36 "<hr><center>new nginx</center>" CRLF
vi src/http/ngx_http_header_filter_module.c
49 static u_char ngx_http_server_string[] = "Server: nginx new" CRLF;
然后重新编译nginx
网友评论