Is there any way of serving static files by only some URL path? For example, next URL pattern http://host/static/*.png
has /static/
substring (path), and Nginx will serve any statics from there.
In the web server documentation I found an example:
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|js)$ { ...
and defined my Nginx config like that:
location / {
try_files $uri $uri/ /index.html;
}
location /apib {
#some proxy_pass
}
location /apim {
#some proxy_pass
}
location /api {
#some proxy_pass
}
I try to add additional location
for */static/*.*
with root dir /var/www/some_statics
.