Nginx 添加headers_more模块
下载地址: https://github.com/openresty/headers-more-nginx-module#installation
下载完毕上传至服务器
进入nginx安装目录
执行命令 nginx -V
查看目录
安装配置headers_more
注 此时应该进入nginx 的源文件目录,
nginx 安装完毕之后会有两个目录,一个安装目录,一个源文件目录
成功
执行命令 make
若出现一下错误
进入与configure 同级目录,修改objs下的Makefile文件
去掉-Werror参数
之后重新make,之后 make install
至此安装成功
headers_more 使用配置
more_clear_input_headers [Cookie]; 删除请求头参数【Cookie】
more_clear_headers [Date]; 删除响应头参数【Date】
案例中只用了这两个参数
具体详细
https://www.cnblogs.com/larry-luo/p/10488367.html