Nginx if后如何直转到指定location @

fanstast 2016-12-27 05:45:18
例如有

if ($http_cookie ~* "comment_author") {

}

location @refresh {
subs_filter_types text/html;
subs_filter 1 2;
}

如何让符合cookie的访问再转到@refresh呢?
...全文
504 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

25,980

社区成员

发帖
与我相关
我的任务
社区描述
高性能WEB开发
社区管理员
  • 高性能WEB开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧