zoukankan      html  css  js  c++  java
  • 在nginx.conf配置中的server段,添加清除header信息

    添加清除header信息

    location /api/ {
    more_clear_headers "X-Powered-By";
    more_clear_headers "Server";
    more_clear_headers "ETag";
    more_clear_headers "Connection";
    more_clear_headers "Date";
    more_clear_headers "Accept-Ranges";
    more_clear_headers "Last-Modified";
    }

    more_set_headers替换(如有)或增加(如果不是所有)指定的输出header头时响应状态代码与-s选项相匹配和响应的内容类型的-t选项指定的类型相匹配的。
    语法:more_set_headers [-t ]… [-s ]… …
    默认值:no
    配置段:http, server, location, location if
    阶段:输出报头过滤器

    more_clear_headers清除指定的输出header头。
    语法:more_clear_headers [-t ]… [-s ]… …
    默认值:no
    配置段:http, server, location, location if
    阶段:输出报头过滤器

    more_set_input_headers设置指定的输入header头,和more_set_headers类似,仅支持-t选项。
    语法:more_set_input_headers [-r] [-t ]… …
    默认值:no
    配置段:http, server, location, location if
    阶段: rewrite tail
    注意:使用-t选项的是过滤请求头的Content-Type,而不是响应头的。

    more_clear_input_headers清除指定输入header头。
    语法:more_clear_input_headers [-t ]… …
    默认值:no
    配置段:http, server, location, location if
    阶段: rewrite tail

  • 相关阅读:
    SharePoint 2013 配置我的网站 图文引导
    关于SharePoint REST中的授权的研究
    SharePoint重置密码功能Demo
    SharePoint 沙盒解决方案 VS 场解决方案
    移动设备和SharePoint 2013
    win32
    win32
    链表复习-1
    win32
    洛谷基础算法
  • 原文地址:https://www.cnblogs.com/enumx/p/12299917.html
Copyright © 2011-2022 走看看