一、Nginx服务的Banner隐藏状态

Nginx 安全配置

Nginx 安全配置

  配置内容:  server_tokens off;

Nginx 安全配置

更多的设置可参照: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;

Nginx 安全配置

参照: https://www.linuxidc.com/Linux/2016-03/129017.htm

相关文章:

  • 2021-11-28
  • 2021-11-27
  • 2021-11-27
  • 2021-11-27
  • 2021-11-27
  • 2021-07-13
猜你喜欢
  • 2021-11-27
  • 2021-11-27
  • 2021-11-27
  • 2021-11-27
相关资源
相似解决方案