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;

编译安装

原文地址:https://www.cnblogs.com/djoker/p/8117454.html