nginx 的漏洞改造

Nginx 的漏洞扫描有很多整改项 

资源下载地址:https://download.csdn.net/download/wangzhi291/89216805

资源里面包括一个nginx1.25.4版本的镜像,配置文件样例  conf/modules  去Server:nginx 所需的第三方代码等  资源不需要积分的

资源里面需要conf/modules 需要上传 然后docker镜像文件 配置按下面的修改就行了

整改方法为增加 ngx_http_headers_more_filter_module模块 

include /usr/share/nginx/modules/*.conf;
load_module modules/ngx_http_headers_more_filter_module.so;



#下面增加
http {
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;
    server_tokens off;
    more_clear_headers 'Server';

修复办法  增加配置  server 里面

        ssl_protocols TLSv1.2 TLSv1.3;
        ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384';
        ssl_prefer_server_ciphers on;

相关推荐

  1. 通过 Nginx 修复 CORS 漏洞

    2024-04-28 17:16:05       24 阅读
  2. nginxnginx优点

    2024-04-28 17:16:05       27 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-28 17:16:05       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-28 17:16:05       106 阅读
  3. 在Django里面运行非项目文件

    2024-04-28 17:16:05       87 阅读
  4. Python语言-面向对象

    2024-04-28 17:16:05       96 阅读

热门阅读

  1. 目标检测的迁移学习

    2024-04-28 17:16:05       27 阅读
  2. Web Service接口的HttpURLConnection调用

    2024-04-28 17:16:05       30 阅读
  3. C++指针的比较

    2024-04-28 17:16:05       194 阅读
  4. 小明的勇者之路:挑战极限,战胜未来!

    2024-04-28 17:16:05       100 阅读
  5. 关系型数据库管理系统!SQL Server !

    2024-04-28 17:16:05       117 阅读
  6. windows下docker创建mysql

    2024-04-28 17:16:05       32 阅读
  7. SQL中top的使用

    2024-04-28 17:16:05       36 阅读