Nginx: rewrite & location

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

        location ~ /Vend1/$ {
            return 201 'First RegExp $uri';
        }
        location ~* /Vend1/(.*)$ {
            return 202 'IgnoreCase RegExp $uri';
        }
        location ^~ /Vend1/ {
            return 203 'Forbidden RegExp $uri';
        }
        location /Vend1/Vend2 {
            return 205 'Longest Prefix Match $uri';
        }
        location /Vend1 {
            return 206 'Shorted Prefix Match $uri';
        }

 

posted @ 2022-05-13 19:58  ascertain  阅读(28)  评论(0编辑  收藏  举报