add_header Set-Cookie: $arg_PARAMETER yields: [emerg] 32049#0: unknown "arg_parameter" variable

Maxim Dounin mdounin at mdounin.ru
Thu Sep 17 15:15:10 MSD 2009


Hello!

On Wed, Sep 16, 2009 at 12:29:50PM -0500, David Taveras wrote:

> Hello all,
> 
> Iam trying to create a cookie globally based on a QUERY string var... for
> this Iam doing:
> 
> add_header   Set-Cookie: $arg_PARAMETER;
> 
> When nginx is started it fails and errors: [emerg] 32049#0: unknown
> "arg_parameter" variable
> 
> How could I accomplish what Iam trying? (yes this needs to be done on a
> server level and not on an application level).

Upgrade?  Variables $arg_* appeared in 0.7.8 and was backported 
into 0.6.36.  Probably you are using something older.

Maxim Dounin





More information about the nginx mailing list