Highlights of Apache + Tomcat load balancing problems

Source: Internet
Author: User

Previously, Apache + Tomcat server Load balancer was set up in a Windows environment (you can not refer to the previous documents, which are applicable to both Linux and Windows). It was smooth sailing without any problems, today, I tried to build it in Linux. I have encountered several problems. I would like to share with you here.

In Linux, there are three redhat6.5 x86_64, among which 192.168.1.2 installs Apache, 192.168.1.3, and 192.168.1.4 to install Tomcat. The configuration is not described here. If there is no, refer to the previous article.

Question 1:

Sessionid keeps changing with page refreshing. This may be because Apache's stickysession = JSESSIONID nofailover = off stickysession is used and Tomcat's cluster's session replication is used, you can remove Apache stickysession = JSESSIONID nofailover = off or Tomcat session sharing.

Question 2:

Apache permission denied: proxy: AJP: http: attempt to connect to [IP address], for example:

This problem is often caused by Apache's lack of forwarding permissions. Solution:/usr/sbin/setsebool httpd_can_network_connect 1 or/usr/sbin/setsebool httpd_can_network_connect true.

Not complete...

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.