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

David Taveras d3taveras38d3 at
Wed Sep 16 21:29:50 MSD 2009

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).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list