Hello, this is a list for the discussion of development topics concerning the Apache web server. The module mod_jk is developed as part of the Apache Tomcat project. Your questions about how to configure mod_jk should be posted to the discussion list
[email protected] Regards, Rainer On 26.08.2009 08:43, run sir wrote: > > > ---------- Forwarded message ---------- > From: *run sir* <runsir.lu <http://runsir.lu>@gmail.com <http://gmail.com>> > Date: Wed, Aug 26, 2009 at 11:14 AM > Subject: How to configure mod_jk+loadbalance+https in Apache 2.2 > To: [email protected] <mailto:[email protected]> > > > Hi, > i am setting Apache https forward and loadbalance with mod_jk on tomcat, > /etc/httpd/config/httpd.conf as below: > SSLProxyEngine on > LoadModule jk_module modules/mod_jk.so > <IfModule mod_jk.c> > JkWorkersFile conf/workers.properties > JkLogFile logs/mod_jk.log > JkLogLevel info > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > JkOptions +ForwardKeySize +ForwardURICompat > -ForwardDirectories > JkRequestLogFormat "%w %V %T" > > <Location /*/WEB-INF/*> > AllowOverride None > deny from all > </Location> > > <Location /*/META-INF/*> > AllowOverride None > deny from all > </Location> > > # forward ALL web requests to our mod_jk loadbalancer workers > JkMount /servlet-examples-cluster/* loadbalancer > </IfModule> > > workers.properties > > worker.list=loadbalancer,status > worker.maintain=60 > > #worker.NODE1.type=ajp13 > #worker.NODE1.host=9.186.10.65 > #worker.NODE1.port=8009 > #worker.NODE1.socket_timeout=60 > #worker.NODE1.socket_keepalive=true > #worker.NODE1.lbfactor=1 > > #worker.NODE2.port=8009 > #worker.NODE2.host=9.186.10.167 > #worker.NODE2.type=ajp13 > #worker.NODE2.socket_timeout=60 > #worker.NODE2.socket_keepalive=true > #worker.NODE2.lbfactor=1 > > worker.NODE3.host=9.186.10.65 > worker.NODE3.type=ajp13 > worker.NODE3.socket_timeout=60 > worker.NODE3.socket_keepalive=true > worker.NODE3.lbfactor=1 > > worker.NODE4.host=9.186.10.68 > worker.NODE4.type=ajp13 > worker.NODE4.socket_timeout=60 > worker.NODE4.socket_keepalive=true > worker.NODE4.lbfactor=1 > > worker.loadbalancer.type=lb > worker.loadbalancer.balanced_workers=NODE3,NODE4 > worker.loadbalancer.sticky_session=true > worker.status.type=status > > > But it can't forward https request > like https://localhost/servlet-examples-cluster/index.jsp to memebers of > loadbalancer group, if i use mod_proxy , it works fine with above setting. > > Can somebody figure out what's wrong with my configuration about mod_jk, > thanks a lot!
