Re: Help with locations and regex

2017-10-21 Thread anon59682
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

Help with locations and regex

2017-10-20 Thread anon59682
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 fi