开发者

Nginx location matches

What is the开发者_JAVA技巧 difference between:

 location = /abc {}

and

 locaton ~ /abc {}


location = /abc {} matches the exact uri /abc

location ~ /abc is a regex match on the uri, meaning any uri containing /abc, you probably want: location ~ ^/abc for the uri begining with /abc instead

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜