Modifying or adding cookies via nginx.conf

Laurent Thevenet lthevenet at gmail.com
Wed Mar 5 00:46:50 MSK 2008


On Wed, Mar 5, 2008 at 2:19 AM, Manlio Perillo <manlio_perillo at libero.it> wrote:
> Laurent Thevenet ha scritto:
>  > Hi,
>  >
>  > I'm dealing with the issue of modifying or adding a cookie on the fly
>  > via nginx.conf
>  >
>  > I look through all the doc and did not find anything except about
>  > identification (http://wiki.codemongers.com/NginxHttpUserIdModule) and
>  > from an external module i forgot about the name (allowing to access
>  > cookies individually but not to set them for the moment).
>  >
>
>  Do you mean this:
>  http://hg.mperillo.ath.cx/nginx/mod_parsed_vars/
>  ?
>
>  It's a module I have written some time ago.
>
>  > So, as i want a cookie value to depend on the URL, i'm looking at all
>  > the options and i just want to know if it's possible and where to look
>  > for in that case.
>  >
>  > Thx guys.
>
>  What do you want to do, in detail?
>

I wanted to set up a language cookie depending on the url as googlebot
is indexing all our content in english when the website is available
both in french and in english. It's more a conception issue and i
wanted a temporary but immediate solution, as nginx is in front of a
mongrel cluster in fact and setting up a cookie was one of them.

And yes it was your mod (parsed vars) that i saw ;)

>
>
>  Regards  Manlio Perillo
>
>



-- 
Laurent Thevenet
fonZz by 7Theories
M : +33 (0)6 74 71 84 44
http://fonzz.com
http://7theories.com





More information about the nginx mailing list