如果rewrite没有用last或break则rewrite完后会继续执行下面的rewirte实现再次重定向,如使用的break或last则忽略下面的重定向。
在location外使用last和break等效,会跳过其它rewrite,然后执行相应的location
在location内使用break会跳过本location的其它rewite,并执行完本location
在location内使用last会跳过本location的其它rewite,并重新选择匹配location ,还会执行新location的rewrite