location ~ /imgs { ... } location ~* .(png|ico|gif|jpg|jpeg|css|js)$ { ... } location ~ (/imgs|/potree) { ... } Nginx location regex examplesNginx Location directive allows routing requests to a particular location in the file system. While Nginx is matching or searching a location block against the requested URL, the location directive tells the Nginx where to search for a specific path by including all files and directories.https://linuxhint.com/nginx-location-regex-examples/