Nginx笔记总结二十一:隐藏或者混淆nginx返回的Server信息

[root@localhost nginx-1.8.0]# vi src/http/ngx_http_header_filter_module.c

 

修改:49-50行

static char ngx_http_server_string[] = "Server: XWEB" CRLF;
static char ngx_http_server_full_string[] = "Server:XWEB " NGINX_VER CRLF;

 

编译安装

posted @ 2017-12-26 13:05  喝杯茶  阅读(1200)  评论(0编辑  收藏  举报