一、Nginx服务的Banner隐藏状态
配置内容: server_tokens off;
更多的设置可参照:https://blog.csdn.net/huangbaokang/article/details/88235386
二、 隐藏Nginx后端服务X-Powered-By头
2.1、打开conf/nginx.conf配置文件;
2.2、在http下配置proxy_hide_header项;
增加或修改为
proxy_hide_header X-Powered-By;
proxy_hide_header Server;
参照: https://www.linuxidc.com/Linux/2016-03/129017.htm