nginx 输出自定义response header 到access.log
需求背景:将squid 的命中率字段输出到nginx的access.log当中,以便统计缓存命中率。关键:怎么么取http的response 的header 值?
参考官方文档 ngx_http_upstream_module
连接:http://nginx.org/en/docs/http/ngx_http_upstream_module.html
发现如下这段话:$
原创
2015-10-15 21:03:37 ·
13252 阅读 ·
0 评论