If you use mod_jk, you can auto-generate the config files that need to be
included at the end of your httpd.conf file....
Put this immediatey after the opening <Server ...> element:
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="c:/Progra~1/Apache~1/Apache2/modules/mod_jk.dll"
jkDebug="info"
workersConfig="c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.9/conf/jk/workers.properties"
jkLog="c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.9/logs/mod_jk.log"
/>
Make sure to set your paths accordingly for your own system setup.
Then, put this immediately after the opening the <Host ...> element:
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true"
forwardAll="false" />
At the startup of Tomcat, this will generate a file in
$TOMCAT_HOME/conf/auto called mod_jk.conf. What I usually do is copy that
out to conf/jk and point to that file. I then comment out the Listeners in
my server.xml from this point on unless my webapps running under Tomcat
change significantly. I just edit by hand since most of it will stay the same.
Make sure to include the new mod_jk.conf file in your httpd.conf like this:
Include "C:/Program Files/Apache
Group/Jakarta/tomcat-4.1.9/conf/jk/mod_jk.conf"
Oh, and your workers.properties should look something like this:
workers.tomcat_home=$(CATALINA_HOME)
workers.java_home=$(JAVA_HOME)
ps=\
worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp13.cachesize=8
worker.ajp14.port=8011
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=mysupersecretkey
worker.ajp14.credentials=mysuperveryrandomentropy
worker.ajp14.lbfactor=1
worker.ajp14.cachesize=8
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)catalina.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps)jvm.dll
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
Jake
At 03:14 PM 8/26/2002 +0200, you wrote:
>Hi Group !
>
>I have a tomcat connected to apache. I would like to use apache for static
>content and tomcat for dynamic.
>Any ideas how to do that ?
>Any references ?
>
>
>Tal Moshaiov
>Log-On
>[EMAIL PROTECTED]
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>