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

来源:互联网 发布:为什么淘宝链接打不开 编辑:程序博客网 时间:2024/04/28 07:40
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;

原创粉丝点击