Welcome! Log In Create A New Profile

Advanced

Re: fastcgi, try_files, problems

Maxim Dounin
July 16, 2009 09:18AM
Hello!

On Thu, Jul 16, 2009 at 01:48:27PM +0100, Dick Middleton wrote:

> Tomasz Pajor wrote:
>
> > I have a problem with proper configuration of my page.
>
> Coo! Let me have a go. I'm brand new to nginx so just testing my
> reading ability :)
>
>> Don't know what am I doing wrong, but the debug says that when i go to
>> http://domain.com/administrator it uses the location /administrator but
>> then it's redirected to /index.php and it uses location /, so not as I
>> intended.
>
> Is it the order of location directives: location / satisfies
> /administrator before location /administrator
>
> So change the order in config - am I right?

No. For normal location (not regex) order doesn't matter, nginx
always uses most specific (i.e. longest match).

See http://wiki.nginx.org/NginxHttpCoreModule#location for
details.

Maxim Dounin
Subject Author Posted

fastcgi, try_files, problems

Tomasz Pajor July 16, 2009 08:06AM

Re: fastcgi, try_files, problems

Maxim Dounin July 16, 2009 08:41AM

Re: fastcgi, try_files, problems

Tomasz Pajor July 16, 2009 09:07AM

Re: fastcgi, try_files, problems

Maxim Dounin July 16, 2009 01:58PM

Re: fastcgi, try_files, problems

Tomasz Pajor July 17, 2009 05:35AM

Resuming http request processing

Marcus Clyne July 17, 2009 07:17PM

Re: Resuming http request processing

bbm September 05, 2009 08:33AM

Re: fastcgi, try_files, problems

mike July 16, 2009 12:42PM

Re: fastcgi, try_files, problems

Dick Middleton July 16, 2009 08:48AM

Re: fastcgi, try_files, problems

Maxim Dounin July 16, 2009 09:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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