Welcome! Log In Create A New Profile

Advanced

Re: Configuration Primer

Reinis Rozitis
March 18, 2009 12:17PM
> My biggest issue is with location blocks. It is still confusing and
> gets annoying on sites requiring multiple location blocks, especially
> with regexps and determining the right ^~ or *~ etc.

The biggest issue in my mind is the way nginx doesnt merge/inherit ( http://wiki.nginx.org/NginxHttpCoreModule#location ) the
options for different location blocks if there are more than one that matches.
It can be handy sometimes but usually it has created me more issues and some nasty workarrounds than helped.


Like sometimes there is the need to have:

location ~ ^/zzz { ... }

But if you have the default location ~ \.php$ { .. } defined before

It means that the /zzz/some.php requests wont use any options you defined in the config.



I have whined about this (and also about global location feature in the http{} scope) to Igor some time ago but he was sceptical at
that time ;)

rr
Subject Author Posted

Re: Configuration Primer

Dan Dascalescu March 18, 2009 04:10AM

Re: Configuration Primer

Reinis Rozitis March 18, 2009 06:01AM

Re: Configuration Primer

Igor Sysoev March 18, 2009 06:15AM

Re: Configuration Primer

mike March 18, 2009 11:57AM

Re: Configuration Primer

Marcus Clyne March 18, 2009 12:05PM

Re: Configuration Primer

Reinis Rozitis March 18, 2009 12:17PM

Re: Configuration Primer

mike March 18, 2009 03:59PM

Re: Configuration Primer

Cliff Wells March 18, 2009 04:05PM

Re: Configuration Primer

mike March 18, 2009 04:26PM

RE: Configuration Primer

Chris Zimmerman March 18, 2009 08:15AM

Re: Configuration Primer

mike March 18, 2009 11:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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