Could someone please confirm if this configuration should work correctly? The goal is to have requests to /
use the root /var/www/front-html
, while requests to /*
should use the root /var/www/front/build
.
location = / {
root /var/www/front-html;
try_files $uri /index.html;
}
location / {
root /var/www/front/build;
try_files $uri $uri/ /index.html;
}
Thank you in advance!
location = / {
root /var/www/front-html;
try_files $uri /index.html;
}
location / {
root /var/www/front/build;
try_files $uri $uri/ /index.html;
}