Hello There,
I have configured apache to send all JSP request to JBoss via mod_jk1.2.6.
It is working fine.
But when i run the Apache along it is not showing me the index.html page of Apache.
But when i start the JBoss and Apache when i say http://localhost or http://localhost:80 it is showing me the index.html of jboss.
Point is for all kinds of requests (both html and jsp's) it is redirecting me to Jboss. But my requirement is static pages should come from Apache and JSP's should come from JBoss.
Please help me.
Here are my configuration files:
##workers.properties##
# Define Node1
worker.node1.port=8009
worker.node1.host=localhost
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.local_worker=1
worker.node1.cachesize=10
# Define Node2
#worker.node2.port=8009
#worker.node2.host= node2.mydomain.com
#worker.node2.type=ajp13
#worker.node2.lbfactor=1
#worker.node2.local_worker=1 (1)
#worker.node2.cachesize=10
# Load-balancing behaviour
worker.loadbalancer.type=lb
#worker.loadbalancer.balanced_workers=node1, node2
worker.loadbalancer.balanced_workers=node1
worker.loadbalancer.sticky_session=1
worker.loadbalancer.local_worker_only=1
worker.list=loadbalancer
# Uri mapping
[uri:/MyGreeting/*.jsp]
worker=ajp13:localhost:8009
server.xml of tomcat under /jbossweb-tomcat50.sar is
Connector port="8080" address="${jboss.bind.address}"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="true" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
Connector port="8009" address="${jboss.bind.address}"
enableLookups="true" redirectPort="8443" debug="0"
protocol="AJP/1.3"
### The Following code is commented out.
Connector port="8443" address="${jboss.bind.address}"
maxThreads="100" minSpareThreads="5" maxSpareThreads="15"
scheme="https" secure="true" clientAuth="false"
keystoreFile="${jboss.server.home.dir}/conf/chap8.keystore"
keystorePass="rmi+ssl" sslProtocol = "TLS"
Please help me...
Vijay
This page provides some examples. See section "Simple Configuration example"
http://tom.unitn.it:8080/tomcat-docs/jk2/jk/aphowto.html