nginx下sever中的location

# 说明

 

location [ = | ~ | ~* | ^~ ] URI { ... }

设置一个 URI 匹配路径

=:精确匹配

~:正则表达式匹配,区分字符大小写

~*:正则表达式匹配,不区分字符大小写

^~:URI 的前半部分匹配,且不实用正则表达式

优先级:

= > location 完整路径 > ^~ > ~ > ~* > location 起始路径 > location /

# 相关博文

http://blog.csdn.net/tjcyjd/article/details/50897959