这是一个创建于 1551 天前的主题,其中的信息可能已经有所发展或是发生改变。
我本来是想在 location 段简单的用 if 判断一下 cookie 来决定要不要添加额外的 header
if ($http_cookie !~* "BED") {
add_header Set-Cookie BED=1;
}
1 条回复 • 2020-02-03 21:49:17 +08:00
|
|
1
Concise 2020-02-03 21:49:17 +08:00
好吧 去官方看了一下有人问过确实是不允许使用 暂时是用参数做几次中转凑合在用 if ($http_cookie !~* "BED") { set $sid "BED=1"; } if ($http_cookie ~* "PHPSESSID") { set $sid $http_cookie; } proxy_set_header Cookie $sid;
|