问题原文
原帖链接 · PartialOrder · CC BY-SA 3.0
What is the difference between Nginx ~ and ~* regexes?
For example:
if ($http_referer ~* www.foobar.net) {
...
}
vs
if ($http_referer ~ www.foobar.net) {
...
}
已采纳解答
原帖链接 · cduffin · CC BY-SA 3.0
~: If a tilde modifier is present, this location will be interpreted as a case-sensitive regular expression match.
~*: If a tilde and asterisk modifier is used, the location block will be interpreted as a case-insensitive regular expression match.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
