美文网首页
nginx参数

nginx参数

作者: 麟之趾a | 来源:发表于2021-06-27 19:18 被阅读0次

proxy_hide_header

nginx 做代理,隐藏响应给客户端的头部

proxy_set_body

nginx做代理,设置发给服务端的body主体

proxy_set_header

nginx做代理,设置发给服务端的header头部

ngx_http_headers_module 模块

前面几个proxy参数是nginx做代理时,修改请求报文或者响应报文的头部。此模块可以用户任何客户端请求,设置或修改响应报文的头部

add_header

Syntax: add_header name value [always];
Default:    —
Context:    http, server, location, if in location

修改响应报文头部,自定义名字和值

expires

Syntax: expires [modified] time;
expires epoch | max | off;
Default:    
expires off;
Context:    http, server, location, if in location

设置客户端缓存

相关文章

网友评论

      本文标题:nginx参数

      本文链接:https://www.haomeiwen.com/subject/saixultx.html