This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat Load balancing using mod_rewrite Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Load balancing using mod_rewrite" Watch "Tomcat Load balancing using mod_rewrite" New topic

Tomcat Load balancing using mod_rewrite

Vasile Purdila

Joined: Sep 27, 2006
Posts: 1

I want to do a simple load balancing of two tomcat servers (5.5.17) using apache web server (2.2.3) and mod_rewrite.

These are my tomcat servers:


And this is the apache server:


I want to access my web application through the apache server:


The load balancer should provide:
1. session affinity
2. if I have a request like http://mainserver/myapp?action=getReport&id=100&appserver=server1
the balancer should ignore the cookie JSESSIONID and redirect the request to http://server1:8080/myapp.

Can anybody help me?

Thanks in advance.
I agree. Here's the link:
subject: Tomcat Load balancing using mod_rewrite
Similar Threads
Loadbalancing: Apache -> mod_rewrite; session lost
Clustering Tomcat... Any thoughts?
Trying to set http://localhost to load one tomcat project?
Apache loadbalancing, mod_rewrite, mod_proxy