# Help to set cookie with nginx

**URL:** <https://www.ruby-forum.com/t/help-to-set-cookie-with-nginx/191003>\
**Category:** NGINX\
**Created:** [July 2, 2010, 10:26am UTC](https://www.ruby-forum.com/t/help-to-set-cookie-with-nginx/191003 "2010-07-02T10:26:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShivaS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@ShivaS](https://www.ruby-forum.com/u/ShivaS)\
**Post date:** [July 2, 2010, 10:26am UTC](https://www.ruby-forum.com/t/help-to-set-cookie-with-nginx/191003/1 "2010-07-02T10:26:31Z")

</div>

Hi all,  
I have recently been trying to convert the following rule from Apache to  
Nginx without any success:  
RewriteRule ^/id=([0-9])(&lÐ°ng=((de)|(es)|(fr)))?$ -  
[CO=id:$1:.domain.com:525600:/]

Have anybody tried anything like that before? I am completely lost and  
without that rule can’t move to work with nginx …

Thanks,  
Alex

Posted at Nginx Forum:

> **[Help to set cookie with nginx](https://forum.nginx.org/read.php?2,104630,104630#msg-104630)**
>
> Hi all, I have recently been trying to convert the following rule from Apache to Nginx without any success: RewriteRule ^/id=(\[0-9\])(&lаng=((de)|(es)|(fr)))?$ - \[CO=id:$1:.domain.com:525600:/\] Have anybody tried anything like that before? I am...
