zoukankan      html  css  js  c++  java
  • nginx location

    1. “= ”,字面精确匹配, 如果匹配,则跳出匹配过程。(不再进行正则匹配)

    2. “^~ ”,最大前缀匹配,如果匹配,则跳出匹配过程。(不再进行正则匹配)

     

    3. 不带任何前缀:最大前缀匹配,举例如下:

         location /  代表以"/"开头的搜索匹配, 再没有正则表达式匹配的情况下才进行这个匹配(优先级最低)

     

    4. “~ ”,大小写相关的正则匹配

    5. “~* ” , 大小写无关的正则匹配

    6. “@”,  Named location 不是普通的location匹配,而是用于location内部重定向的变量。

     

    其中: 1、2、3 三种情况属于 location using literal string, 即使用普通字符串的location匹配;

                4、5       二种情况属于 location using regular expresstion,即使用正则表达式的location匹配;

  • 相关阅读:
    3-2
    3-1
    2-11
    2-10
    2-7
    2-9
    springboot 使用undertow代替tomcat容器提高吞吐量
    springboot—JVM性能参数调优
    springbootDay3
    springboot_Mybaits_PageHelper
  • 原文地址:https://www.cnblogs.com/tom-zhao/p/3910687.html
Copyright © 2011-2022 走看看