I found some configuration of nginx contains:
if($args ^~ post=140) {
rewrite ^ http://test.com/ permanent;
}
What does the ^ mean in rewrite ^ http://test.com/ permanent?
|
I found some configuration of nginx contains:
What does the |
||||
|
|
It's a regexp metacharacter that matches the beginning of a string. Since all strings have a beginning, this regexp matches any string. This is a typical nginx idiom for "redirect any URL to The |
|||||||
|