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
=
(exactly)^~
(forward match)~
(regular expression case sensitive)~*
(regular expression case insensitive)/
(prefix)