Using nginx as a reverse proxy for tomcat results in new jsessionids for every ssl request
Posted
by
user439407
on Server Fault
See other posts from Server Fault
or by user439407
Published on 2012-09-11T08:53:13Z
Indexed on
2012/09/11
9:40 UTC
Read the original article
Hit count: 208
I am using nginx as a reverse proxy for a tomcat setup, and everything works fine for the MOST part, the only issue I am having is that every request to an http address results in a new JSESSION ID being created(this doesn't happen in http), here is the relevant part of the NGINX configuration:
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
proxy_connect_timeout 240;
proxy_send_timeout 240;
proxy_read_timeout 240;
proxy_pass http://localhost:8080;
}
Any idea why I am constantly genning new jsessionids?
© Server Fault or respective owner