NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
espuppet
V2EX  ›  NGINX

求助:怎样在日志中记录响应头中全部的 set-cookie 信息

  •  
  •   espuppet ·
    espuppet · Sep 3, 2014 · 4985 views
    This topic created in 4287 days ago, the information mentioned may be changed or developed.
    在网上找了一圈,只找到这个[How to log all sent set-cookie headers](http://forum.nginx.org/read.php?11,250244),还没人回答。。。

    使用`log_format`定制日志输出时,`$sent_http_set_cookie`仅能返回第一条Set-Cookie,其他的都无法输出。

    我在配置文件中是这样配置的
    ```
    log_format output '[$time_local] ' '$remote_addr "$request" $status $bytes_sent set_cookie="$sent_http_set_cookie"';
    ```

    求问怎样能在日志中记录响应头中全部的set-cookie信息
    2 replies    2015-01-19 11:08:51 +08:00
    espuppet
        1
    espuppet  
    OP
       Sep 3, 2014
    说好的Markdown呢。。。
    dx3759
        2
    dx3759  
       Jan 19, 2015
    未解决??
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2677 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 02:05 · PVG 10:05 · LAX 19:05 · JFK 22:05
    ♥ Do have faith in what you're doing.