We use apache httpd 2.2 and mod_proxy for this
Then we run 2 tomcats, one on port 8080 and one on port 88. The firewall prevents external access to these ports, so only port 80 is open
Apache HTTPd configured to listen on port 80
It is very easy to set up. This is the basic configuration (httpd.conf) that will work out of the box:
LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule proxy_http_module modules/mod_proxy_http.so <Proxy balancer://mycluster> BalancerMember http://localhost:8080 BalancerMember http://localhost:88 status=+H </Proxy> ProxyPass / balancer://mycluster/ ProxyPassReverse / balancer://mycluster/
"+ H" means that it is used only as a backup server, so when the 8080 is unavailable, it will work at 88 until the 8080 returns to the network
kabal source share