2021
01-17
01-17
Nginx中break与last的区别详析
先说区别last,重写后的规则,会继续用重写后的值去匹配下面的location。break,重写后的规则,不会去匹配下面的location。使用新的规则,直接发起一次http请求了。Nginx配置文件server{listen88;server_name_;location/break{#location1rewrite^/break/(.*)$/bak/$1break;}location/last{#location2rewrite^/last/(.*)$/bak/$1last;}location/bak{#location3default_type...
继续阅读 >