Problems with Nginx Tomcat session missing

Source: Internet
Author: User
Tags nginx reverse proxy

Nginx Reverse proxy Tomcat, there is a problem that seesion cannot get.

Most of the solutions found on the Web are clustered Tomcat sharing session sharing, but I have only one Tomcat server, which does not involve server cluster issues.

But also find the most reliable Ip_hash scheme tried, because the configuration when accidentally equipped with the root path, so in the test when manually added project name access to normal, the session is also normal ...

Considering the situation just now, it should be that the agent has a more project name resulting in inconsistent session paths, so there are two solutions:

Block out project name

Specify a cookie path for the project

Problems with Nginx Tomcat session missing

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.