Skip to content

a module that can modify the http headers after handling the upstream requests / 一个用来修改proxy_pass后的HTTP头部的模块

Notifications You must be signed in to change notification settings

demonelf/ngx_http_proxy_header_filter

 
 

Repository files navigation

Install

  • nginx configuration params

--add-dynamic-module=/PATH/TO/ngx_http_proxy_header_filter_module/ngx_http_proxy_header_filter_module

Usage

load ngx_http_proxy_header_filter_module.so;
###other configurations
http{
   ###other configurations
   server{
       ###other configurations
       location / {
          ###other configurations
          proxy_pass https://backend;
          proxy_header_filter Set-Cookie "secure" "";
       }
   }
}

Directives

proxy_header_filter Header Match Value

default: ``

context: http, server, location

About

a module that can modify the http headers after handling the upstream requests / 一个用来修改proxy_pass后的HTTP头部的模块

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%