nginx last break等
摘要:
rewrite的规则可以在server或者location模块下,如果在server下匹配,则需要将rewrite之后的uri继续向下匹配location,如果在location模块内有rewrite,匹配后,需要将rewrite之后的uri继续在location模块内向下匹配,如果在模块内没有匹配,则重新走一遍所有匹配1.rewrite xxx xxx last,则不匹配location内部其他rewrite,但是需要继续匹配其他location模块2.break,直接不再和其他模块匹配Break和last都能阻止继续执行后面的rewrite指令,但是last如果在location下用的话, 阅读全文
posted @ 2014-02-27 17:24 aiguang 阅读(351) 评论(0) 推荐(0)
浙公网安备 33010602011771号