# 说明

 

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

设置一个 URI 匹配路径

=:精确匹配

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

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

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

优先级:

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

nginx下sever中的location

# 相关博文

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

相关文章:

  • 2021-05-05
  • 2022-01-27
  • 2022-01-14
  • 2021-06-30
  • 2021-09-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2021-09-04
  • 2022-12-23
  • 2021-05-15
相关资源
相似解决方案