Re: Hashes / Arrays für $arg_PARAMETER

edogawaconan me at myconan.net
Thu Jul 25 12:50:56 UTC 2013


On Thu, Jul 25, 2013 at 8:34 PM, Maik Unger <lists at ruby-forum.com> wrote:
> hi,
>
> i think that you don't understand me.
>
> i will define an array that will check against the $arg_PARAMETER.
>
> Example:
>
> Array with the following Values:
>
> array ("test"; "test2)
>
> Query-String:
>
> http://domain.com/?user=test
>
> $arg_user = "test"
>
> if the $arg_PARAMETER match with on of the array values, the access to
> the webseite is allow, otherwise the access is disallowed.
>

Something like this should work:

map $arg_user $allowed {
  default 0;
  test 1;
  test2 1;
}

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



More information about the nginx mailing list