11 messages in ru.sysoev.nginxRe: doc: limit_except
FromSent OnAttachments
Gregg ReynoldsMar 15, 2007 11:11 am 
Igor SysoevMar 15, 2007 11:23 am 
Igor SysoevMar 15, 2007 11:29 am 
Gregg ReynoldsMar 15, 2007 1:51 pm 
Igor SysoevMar 16, 2007 12:00 am 
Gregg ReynoldsMar 16, 2007 1:59 am 
Igor SysoevMar 16, 2007 2:17 am 
Gregg ReynoldsMar 16, 2007 4:17 am 
Igor SysoevMar 16, 2007 4:26 am 
Gregg ReynoldsMar 16, 2007 7:37 am 
Igor SysoevMar 16, 2007 8:10 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: doc: limit_exceptActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Mar 16, 2007 4:26:04 am
List:ru.sysoev.nginx

On Fri, Mar 16, 2007 at 05:17:39AM -0600, Gregg Reynolds wrote:

On 3/16/07, Igor Sysoev <is-G@public.gmane.org> wrote:

Although initially "limit_except" was used for authorization only, now it allows two non-authorization directive - "proxy_pass" and "perl" and can be use as method switches as well as "location"s are used as URI swicther. If I will make support of several "limit_except" blocks the directive should be even renamed to "methods_except":

location / {

methods POST { proxy_pass ... }

methods LOCK UNLOCK { perl ... }

methods_except GET { ... }

# GET/HEAD ... }

I like it. But why not use logical ops? e.g.

location / {

methods == POST { proxy_pass ... }

methods == LOCK UNLOCK { perl ... }

methods != GET { ... }

# GET/HEAD ... }

One advantage is the logical operator clearly only applies to the argument, not to the block, and it avoids the messy natural language semantics of "except".

The "!=" is good for me, thank you. I think the "==" should be omitted:

methods POST ... methods LOCK UNLOCK ... methods != GET ...