Nginx is a web server which can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache. — Wikipedia

Location directive

https://nginx.org/en/docs/http/ngx_http_core_module.html#location

Sequence

  1. = (exactly)
  2. ^~ (forward match)
  3. ~ (regular expression case sensitive)
  4. ~* (regular expression case insensitive)
  5. / (prefix)