Welcome! Log In Create A New Profile

Advanced

Re: Help with locations and regex

Francis Daly
October 21, 2017 05:22AM
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@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Help with locations and regex

anon59682 October 20, 2017 06:37PM

Re: Help with locations and regex

Francis Daly October 21, 2017 05:08AM

Re: Help with locations and regex

Francis Daly October 21, 2017 05:22AM

Re: Help with locations and regex

anon59682 October 21, 2017 01:41PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready