Jboss 4.2.1.GA + Apache 2.2.6 + mod_jk-1.2.26-httpd-2.2.6.so
gianfeng Feb 24, 2008 12:35 AMI deploy them on linux server.
(1)http://www.mydomain.cn only static html
(2)http://222.33.22.33:8080/ jsp is ok.
Is there something wrong ? plz help me, thank you!
Apache httpd.conf
# Include mod_jk's specific configuration file Include conf/mod-jk.conf
# Specify the filename of the mod_jk lib LoadModule jk_module modules/mod_jk-1.2.26-httpd-2.2.6.so # Where to find workers.properties JkWorkersFile conf/workers.properties # Where to put jk logs JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel info # Select the log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" # JkOptions indicates to send SSK KEY SIZE JkOptions +ForwardKeySize +ForwardURIProxy -ForwardDirectories # JkRequestLogFormat JkRequestLogFormat "%w %V %T" # Mount your applications # JkMount /application/* loadbalancer JkMount /* loadbalancer JkMount /*.jsp loadbalancer JkMount /*.go loadbalancer # You can use external file for mount points. # It will be checked for updates each 60 seconds. # The format of the file is: /url=worker # /examples/*=loadbalancer # JkMountFile conf/uriworkermap.properties # Add shared memory. # This directive is present with 1.2.10 and # later versions of mod_jk, and is needed for # for load balancing to work properly JkShmFile logs/jk.shm # Add jkstatus for managing runtime data <Location /jkstatus/> JkMount status Order deny,allow Deny from all Allow from 127.0.0.1 </Location>
worker.list=loadbalancer,status # Define Node1 # modify the host as your host IP or DNS name. worker.node1.port=8009 worker.node1.host=127.0.0.1 worker.node1.type=ajp13 worker.node1.lbfactor=1 # worker.node1.cachesize=10 # Define Node2 # modify the host as your host IP or DNS name. worker.node2.port=8009 worker.node2.host= 127.0.0.10 worker.node2.type=ajp13 worker.node2.lbfactor=1 # worker.node2.cachesize=10 # Load-balancing behaviour worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=node1,node2 worker.loadbalancer.sticky_session=1 #worker.list=loadbalancer # Status worker for managing load balancer worker.status.type=status
<Engine name="jboss.web" defaultHost="limincun.cn" jvmRoute="node1"> .... </Engine> <attribute name="UseJK">true</attribute>