Help with locations and regex

Francis Daly francis at daoine.org
Sat Oct 21 09:20:22 UTC 2017


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 alias and try_files and the fallback value
> which you might be hitting, but if you see the expected response then
> I guess it works for you.

I'm wrong. That bug only applies if there is a $variable in the fallback
value (and even then, not always). So your use of try_files here is fine.

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list