nginx模块之ngx_http_headers_module
来源:互联网 发布:js禁用button按钮 编辑:程序博客网 时间:2024/06/10 09:26
说明:该模块是用于在响应给客户端的报文中添加首部
1.add_header name value
Syntax: add_header name value [always];
Default: —
Context: http, server, location, if in location
向响应报文添加自定义首部,并赋值
示例:
add_header X-Via $server_addr;
2.expires
Syntax: expires [modified] time;
expires epoch | max | off;
Default:
expires off;
Context: http, server, location, if in location
用于添加Expire和Cache-Control首部或修改首部的值
阅读全文
0 0
- nginx模块之ngx_http_headers_module
- 详细解释:nginx中ngx_http_headers_module模块配置及各个参数含义
- Nginx模块之SessionSticky
- Nginx之proxy_store模块
- nginx模块之ngx_http_proxy_module
- nginx模块之ngx_http_upstream_module
- Nginx之hander模块
- 十五.headers模块功能(ngx_http_headers_module)根据Content-Type来设置过期时间
- Nginx之http_image_filter_module模块使用
- nginx之chunked模块解析
- nginx四 之缓存模块
- NGINX模块开发 之 验证URL参数
- 《深入理解Nginx》之HTTP模块
- nginx模块开发之handler函数
- nginx配置详解之main模块
- nginx配置详解之events模块
- nginx配置详解之http模块
- nginx配置详解之upstream模块
- HDU 1258 确定比赛名次(拓扑排序)
- NFC
- 一个前端小白的苦恼!
- iOS-UITextView 输入字数限制一行代码搞定
- 【GoldenGate】 OGG-01201 Error reported by MGR : Access denied.
- nginx模块之ngx_http_headers_module
- Python面向对象
- curl get post http 操作类
- 1044. 火星数字(20)
- 解决: Failed to start component [StandardEngine[Catalina]
- Java对象内存结构
- Java程序员面试失败的5大原因
- Undefined function 'im2double' for input arguments of type 'uint8'.
- 同一个Tomcat不同端口部署不同项目