location ~ {
root /var/www/static1/;
root /var/www/static2/;
}
I tried the above,so that when /name.gif
is requested ,if /var/www/static1/name.gif
exists, then just use it as is;but if there isn't such a file,try to see if there's /var/www/static2/name.gif
, is it possible to configure nginx this way?