gpt4 book ai didi

nginx - 从 nginx 中的 Set-Cookie header 登录值

转载 作者:行者123 更新时间:2023-12-03 14:14:58 26 4
gpt4 key购买 nike

是否可以将来自 Cookie 的 key 'uuid' 的值写入 nginx 访问日志以供服务器响应( header :Set-Cookie)?

$cookie_uuid - 返回发送客户端的uuid$sent_http_set_cookie - 返回整个 header Set-Cookie: 'uuid=897587e7-a733-422f-9daa-b3105a5895aa;域名=domain.com;路径=/; expires=Tue, 09-Aug-2033 01:17:54 GMT',但我只需要保存键“uuid”的值

谢谢

最佳答案

map $sent_http_set_cookie $resp_uuid {
~*uuid=(?<u>[0-9a-f-]+) $u;
}

引用:

关于nginx - 从 nginx 中的 Set-Cookie header 登录值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18138503/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com