<p dir="ltr">On 24 Jul 2013 21:30, "Maik Unger" <<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>> wrote:<br>
><br>
> Hello @all,<br>
><br>
> Is it possible to define array / hashes in nginx? I have the following<br>
> idea:<br>
><br>
> nginx should check $arg_PARAMETER which is defined by an array. If the<br>
> right element in the array, then die access is permitted, otherwise<br>
> denied.<br>
><br>
> example:<br>
><br>
> the $arg_PARAMETER can have the following values:<br>
><br>
> "ab" or "bc" or cd"<br>
><br>
> if $arg_PARAMATER != array -> Access is denied, otherwise permitted</p>
<p dir="ltr">$arg_* are strings because they derive from the query string.  They are not arrays. You can interpret these strings using any of the methods nginx gives you. </p>
<p dir="ltr">> I would appreciate about a solution.</p>
<p dir="ltr">I suggest you'll have to concoct a solution using nginx maps with regular expressions. That's a very powerful method of switching behaviours based on user input. Have a Google for their docs and for interesting ways of using them.</p>

<p dir="ltr">J<br>
</p>