Hi! With your suggestions, I was able to get it - thank you! Here is what I ended up doing: location = /admin { try_files /index.html =404; } location ^~ /admin/ { alias /home/user/project/dist/; try_files $uri $uri/ /admin/index.html; } location = / { # proxy_pass } location ~ ^/[^/]+$ { # proxy_pass } The results are perfect. I kinda wanted a single location to handle both admin caseby anon59682 - Nginx Mailing List - English
Hi, I'm trying to serve up static files for some paths and proxy_pass for others and I can't figure it out. === Requirements === Location 1: the following paths should all load the requested file from /home/user/project/dist/ and fall back to /home/user/project/dist/index.html if the explicit filename was not found (ideally, without a redirect): /admin /admin/ /admin/favicon.ico /adby anon59682 - Nginx Mailing List - English