• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Tomcat Load balancing using mod_rewrite

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

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:

http://server1:8080/myapp
http://server2:8080/myapp

And this is the apache server:

http://mainserver:80

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

http://mainserver/myapp

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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic