cookies from apache
November 02, 2010 06:51AM
Hello all.

We have a little problem migrating from apache to nginx.

For easyer migration we have setup nginx proxy which proxies all requests to backend apache. The apache is serving cookies (CookieTracking) and all goes well, but when we try to serve and read cookies from nginx the nginx replaces an existing (apache) cookie with his own (value differs, the cookie name is the same).

We would like nginx to use the same cookie user got from apache (in the last year) but if user does not have a cookie, nginx should set one.

Our nginx.conf cookie section is:

# cookie
userid on;
userid_name CN;
userid_path /;
userid_expires max;

Our apache cookie section is:

CookieTracking on
CookieStyle Cookie
CookieName CN
CookieExpires "1 years"

Does enyone have any idea what are we missing here?

Thank you for your help.

best regards,
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 77
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready