Apache+tomcat Load Balancing Problem collection

Source: Internet
Author: User
Tags tomcat linux

Previously built under the Windows environment under the APACHE+TOMCAT load balancing (can not refer to the previous document, the document for Linux and Windows are applicable), smooth sailing, without any problems, today try to build under Linux, which encountered a few problems, Here to share with you.

Linux environment, three redhat6.5 x86_64, where 192.168.1.2 install apache,192.168.1.3 and 192.168.1.4 install Tomcat, this no longer describes the configuration, if not, you can refer to the preceding article.

Question one:

SessionID with the page refresh constantly changing, this reason may be the use of Apache Stickysession=jsessionid Nofailover=off sticky session with the Tomcat in the cluster of session replication, You can remove Apache Stickysession=jsessionid Nofailover=off or remove Tomcat session sharing

Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/web/

Question two:

Apache Permission denied:proxy:ajp:HTTP:attempt to connect to [IP address], as shown below:

This problem is often caused by Apache not forwarding permissions, Workaround:/usr/sbin/setsebool Httpd_can_network_connect 1 or/Usr/sbin/setsebool Httpd_can_ Network_connect true.

Author: csdn Blog Maple fluttering moment

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.