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...