I have a SPA and serving it from Nginx which works fine. I also have an simple index.html inside a sub-folder.
Spa links to index.html for displaying a sub application which is simple html with it's own css/js. When trying to browse the subfolder app, nginx redirects to the base spa.
nginx config
location / {
try_files $uri $uri/ /index.html =404;
}
location /3d-viewer/ {
try_files $uri $uri/ /3d-viewer/index.html;
}
Thanks for help.