Here is an example, modify to suit your needs.  Disable JNI if you don't 
use it.  Change Disable=0 to Disable=1 in the appropriate places.

[logger]
level=DEBUG

[config:]
#file=${serverRoot}/conf/workers2.properties
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess 
servers
file=${serverRoot}/logs/jk2.shm
size=1000000
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 ) 
# can be overriden to a file logger, useful 
# when tracing win32 related issues
#logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

#[lb:lb_1]
#info=A second load balancer.
#debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

#[channel.socket:localhost:8019]
#info=A second tomcat instance. 
#debug=0
#tomcatId=localhost:8019
#lb_factor=1
#group=lb
#group=lb_1
#disabled=0

#[channel.un:/opt/33/work/jk2.socket]
#info=A second channel connecting to localhost:8019 via unix socket
#tomcatId=localhost:8019
#lb_factor=1
#debug=0

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess

[status:]
info=Status worker, displays runtime informations

[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\Program Files\Java\j2re1.4.0_01\bin\client\jvm.dll (Read from 
registry)
OPT=-Djava.class.path=c:/Tomcat/bin/tomcat-jni.jar
OPT=-Dtomcat.home=c:/Tomcat
OPT=-Dcatalina.home=c:/Tomcat
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
disabled=0

[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start 
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
disabled=0
stdout=c:/Apache2/logs/stdout.log
stderr=c:/Apache2/logs/stderr.log

[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop 
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=0

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

#[uri:127.0.0.1:8003]
#info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to 
test it
#alias=myVirtualHost:8003

#[uri:127.0.0.1:8003/ex]
#info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. 
localhost:8019 )
#context=/ex
#group=lb_1

[uri:/examples]
info=Example webapp in the default context. 
context=/examples
debug=0

#[uri:/examples1/*]
#info=A second webapp, this time going to the second tomcat only.
#group=lb_1
#debug=0

[uri:/examples/servlets/*]
info=Prefix mapping

[uri:/examples/*.jsp]
info=Extension mapping

[uri:/examples/*]
info=Map the whole webapp

[uri:/examples/servlets/HelloW]
info=Exampel with debug enabled.
debug=10





unplug <[EMAIL PROTECTED]>
10/09/2002 07:05 PM
Please respond to "Tomcat Users List"

 
        To:     Tomcat Users List <[EMAIL PROTECTED]>
        cc: 
        Subject:        Re: connector between tomcat & apache

Any example for using mod_jk2 with apache1.3+tomcat4.1?  I follow the
instruction from the document to download the mod_jk2.  Then I put it
under apache_home/modules.  Then I add LoadModule & AddModule of mod_jk2
in httpd.conf.  After that, the document said there is a file called
worker2.properties which is used by apache.  I can't found that file in
tomcat.  Moreover, I doubt what setting should I add in httpd.conf.

unplug


"Turner, John" wrote:
> 
> Mod_jk (AJP13).  Don't use WARP/mod_webapp.
> 
> Mod_jk2 is beta, workable, but use at your own risk.  Mod_jk is stable 
and
> well-supported at this time.
> 
> John
> 
> > -----Original Message-----
> > From: unplug [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 08, 2002 10:09 PM
> > To: tomcat-user
> > Subject: connector between tomcat & apache
> >
> >
> > Hi all,
> >
> >   I want to confirm the following.
> > I have read the document about the connector between tomcat & apache.
> > But I am confused what connector to use.  As document said, we can use
> > mod_jk2 for apache2.0+tomcat4.  How about apache1.3+tomcat4?  The
> > document doesn't mention about it.  Is mod_webapp the only way to be a
> > connector between them?
> >
> > Thanks,
> > unplug
> >
> >
> > --
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to