nginx location 规则

备注:http://nginx.org/en/docs/http/ngx_http_core_module.html#location

 

一.概述

根据请求URI来设置配置。

 

二.规则讲解

location可以由正则表达式或者前缀字符串定义。为了找到给定请求的location,nginx首先检查前缀字符串定义的location。

1.正则表达式,以~*作为前缀,是大小写不明感匹配;而~是区分大小写匹配.

2.

posted @ 2018-11-30 18:12  san3er  阅读(80)  评论(0)    收藏  举报