Welcome! Log In Create A New Profile

Advanced

Re: How does 'locate' work?

Maxim Dounin
October 22, 2009 09:30AM
Hello!

On Thu, Oct 22, 2009 at 01:52:59PM +0200, Artifex Maximus wrote:

> Hello!
>
> On Thu, Oct 22, 2009 at 1:35 AM, Maxim Dounin <mdounin@mdounin.ru> wrote:
>
> > On Wed, Oct 21, 2009 at 04:50:38PM -0400, GAZ082 wrote:
> >
> > But this is really fragile. As soon as new regex location appears
> > - you'll have to add another one to preserve auth_basic. More
> > safe aproach is to use nested locations, i.e.:
> >
>
> Since which version? I had some problem and using 'alias /l/$1' for PHP
> scripts because of missing nested location. So it is time to change? :-)

Nested location are allowed by config syntax from 0.1.0 (first
public release). But they may have various bugs in various
versions. Example I've provided should work on all supported
branches including legacy 0.6.*, though I've never checked.

Note well: alias directive is one that likely has problems with
nested locations.

Maxim Dounin
Subject Author Posted

How does 'locate' work?

GAZ082 October 21, 2009 04:50PM

Re: How does 'locate' work?

Maxim Dounin October 21, 2009 07:38PM

Re: How does 'locate' work?

Jeff Waugh October 21, 2009 08:16PM

Re: How does 'locate' work?

Peter A Leonov October 22, 2009 03:12AM

Re: How does 'locate' work?

Artifex Maximus October 22, 2009 07:58AM

Re: How does 'locate' work?

Maxim Dounin October 22, 2009 09:30AM

Re: How does 'locate' work?

GAZ082 October 22, 2009 01:05PM

Re: How does 'locate' work?

Maxim Dounin October 22, 2009 02:00PM

Re: How does 'locate' work?

GAZ082 October 22, 2009 09:24PM

Re: How does 'locate' work?

Maxim Dounin October 23, 2009 02:50AM

Re: How does 'locate' work?

edogawaconan October 22, 2009 12:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
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