httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From run sir <runsir...@gmail.com>
Subject Fwd: How to configure mod_jk+loadbalance+https in Apache 2.2
Date Wed, 26 Aug 2009 06:43:16 GMT
---------- Forwarded message ----------
From: run sir <runsir.lu@gmail.com>
Date: Wed, Aug 26, 2009 at 11:14 AM
Subject: How to configure mod_jk+loadbalance+https in Apache 2.2
To: users@httpd.apache.org


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!

Mime
View raw message