This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes HTTPS loadbalancing and clustering using Tomcat 6.x, Apache 2.2 and mod_jk-1.2.28 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "HTTPS loadbalancing and clustering using Tomcat 6.x, Apache 2.2 and mod_jk-1.2.28" Watch "HTTPS loadbalancing and clustering using Tomcat 6.x, Apache 2.2 and mod_jk-1.2.28" New topic
Author

HTTPS loadbalancing and clustering using Tomcat 6.x, Apache 2.2 and mod_jk-1.2.28

Kumar Jaya
Ranch Hand

Joined: Jan 12, 2009
Posts: 45
Hello,

I have a requirement to do loadbalancing with HTTPS request with Apache 2.2, Tomcat 6.x using mod_jk-1.2.28. I read many sites and articles, but they mostly give informations only on HTTP load balancing. I am giving you all that I collected.

1) To do HTTPS load balancing you need to use AJP13 connectors instead of AJP12.
2) Lots of forum posts saying that HTTPS request that comes to Apache web servers are not routed to Tomcat.
3) Link http://onjava.com/pub/a/onjava/2001/09/26/load.html?page=2 which gives a very useful and high level information about HTTPS load balancers, but it say you have to use a Web Server along with Web server adapter(I dont know what really a web server adapter is). This site says that my certificate related information should be present in Web server(Apache)

I have some doubts regarding these

1) If I do a load balancing in this way where should I have my certificate related information, whether in Tomcat instances or Apache Webserver??(my finding in step 3 above).
2) If Apache 2.2 receives a HTTPS request will it directly look into the mod_jk conf files to divert the request to Tomcat or will it start using its SSL implementation from mod_ssl configurations. Is there any additional configurations I have to do to override mod_ssl and for this load balancing mechanism to work?
3) Should my httpd.conf and worker.properties file contain additional information for HTTPS load balancing.

Any help regarding this is heartily appreciated as I am half my design phase.

Thanks in advance
Jaya

Kumar Jaya
Ranch Hand

Joined: Jan 12, 2009
Posts: 45
Is there any one for a reply??

Regards
Jaya
Kumar Jaya
Ranch Hand

Joined: Jan 12, 2009
Posts: 45
Hello,

I was able to setup Tomcat 6.0 with Apache 2.2 with mod_jk-1.2.28. I have to load balance HTTPS request with mod_jk-1.2.28, I had my certificates in Tomcat 6.0 and the system goes on fine. I read a bug in mod_jk-1.2.28 https://issues.apache.org/bugzilla/show_bug.cgi?id=47714 and tried to go with mod_proxy_ajp but I am not able to do HTTPS load balancing. Can any one who has tried HTTPS load balancing with mod_proxy_ajp help me out with it???

HTTP load balancing is working with mod_proxy_ajp

I am not able to proxy https request to Tomcat???

Thanks in advance
Regards
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HTTPS loadbalancing and clustering using Tomcat 6.x, Apache 2.2 and mod_jk-1.2.28
 
Similar Threads
loadbancing through jsp/servlets without mod_jk
Tomcat serving Blank Page - shows on Refresh - why?
Partially secure web applications ... HOW TO?
Using SSL/Https with Apache & Tomcat - where do I start?
Apache Tomcat mod_ssl and mod_jkb