用^~
来匹配
http://127.0.0.1:81/demo/test.html
http://host/
1 | location ^~ /demo/ { |
代理到http://127.0.0.1:8080/test.html
http://host
1 | location ^~ /demo/ { |
代理到http://127.0.0.1:8080/demo/test.html
http://host/<path>/
1 | location ^~ /demo/ { |
代理到http://127.0.0.1:8080/a/test.html
http://host/<path>
1 | location ^~ /demo/ { |
代理到http://127.0.0.1:8080/atest.html
用=
来匹配
http://127.0.0.1:81/demo/
http://host/
1 | location = /demo/ { |
代理到http://127.0.0.1:8080/
http://host
1 | location = /demo/ { |
代理到http://127.0.0.1:8080/demo/