您的位置:首页 > 运维架构 > Nginx

nginx中rewrite模块break和last原理详解

2017-05-25 13:22 495 查看
last:
    重新将rewrite后的地址在server标签中执行
break:
    将rewrite后的地址在当前location标签中执行

nginx官方解释:
last:
    stops processing the current set of 
ngx_http_rewrite_module
 directives followed by a search for a new location matching         the changed URI;
break:
    stops processing the current set of 
ngx_http_rewrite_module
 directives;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: