首页 > 技术文章 > Nginx笔记总结二十一:隐藏或者混淆nginx返回的Server信息

djoker 2017-12-26 13:05 原文

[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;

 

编译安装

推荐阅读