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
On Sat, Oct 21, 2017 at 10:07:42AM +0100, Francis Daly wrote:
> On Fri, Oct 20, 2017 at 06:37:45PM -0400, anon59682 wrote:
Hi there,
> > location ^~ /admin {
> > alias /home/user/project/dist;
> > try_files $uri $uri/ /admin/index.html;
> > }
> Also, there is a bug with a
On Fri, Oct 20, 2017 at 06:37:45PM -0400, anon59682 wrote:
Hi there,
> 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):
>
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