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