Welcome! Log In Create A New Profile

Advanced

configuring nginx proxy cache with ssi and cookies problem

Posted by zanaticul 
configuring nginx proxy cache with ssi and cookies problem
January 05, 2012 03:18PM
I configured nginx in front of an web app(apache). because there is some dynamic content i had to implement using SSI - Server sides include which works perfectly.

the problem is that the web app needs a session cookie for the dynamic content and to be accesable in the SSI. everything worked great until i tested the project with a friend. because nginx caches headers(even Set-Cookie header) the session id would be shared between all users.
to resolv this problem i used proxy_hide_headers Set-Cookie on the root and proxy_pass_header Set-Cookie on the ssi requests and now all Set-Cookie headers are ignored(even from ssi). is there a way to resolv this problem?

thanks in advance
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 189
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