costin      02/04/29 23:50:05

  Modified:    jk/conf  workers2.properties
  Log:
  An update config to test the new mapping.
  
  Revision  Changes    Path
  1.9       +41 -17    jakarta-tomcat-connectors/jk/conf/workers2.properties
  
  Index: workers2.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/conf/workers2.properties,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- workers2.properties       18 Apr 2002 19:22:54 -0000      1.8
  +++ workers2.properties       30 Apr 2002 06:50:05 -0000      1.9
  @@ -17,13 +17,13 @@
   # file=logs/mod_jk.log
   
   [shm]
  -file=${TOMCAT_HOME}/work/jk2.shm
  +file=${serverRoot}/logs/jk2.shm
   size=1000000
   
   
   #################### Channels ####################
   # Each channel defines a communication mechanism to a tomcat instance.
  -# Each channel is associated with a worker.ajp13:NAME, with the same local name
  +# Each channel is associated with a ajp13:NAME, with the same local name
   
   
   # Default channel 
  @@ -72,7 +72,7 @@
   # to work reliably and on all platforms. Same for other java libs. 
   # "java" script is a good example, Sun needs it to start java and we need it to.
   # JAVA_HOME and TOMCAT_HOME can be set as environment variables
  -[vm]
  +[disabled:vm]
   # That will work with both 3.x and 4.x. 
   OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar
   OPT=-Dtomcat.home=${TOMCAT_HOME}
  @@ -89,23 +89,47 @@
   # XXX Uris to be read from separate file, one per webapp.
   # XXX Webapps to be declared automatically, using webapps/ content :-)
   
  -[uri:/examples/servlet/HelloWorldExample]
  -worker=ajp13:jni
  -# worker=ajp13:localhost:8009
  -# worker=ajp13:unixSocket
   
  -[uri:/examples/servlet/RequestHeaderExample]
  -#worker=ajp13:jni
  -# worker=ajp13:localhost:8009
  -worker=ajp13:unixSocket
  -
  -[uri:/examples/servlet/RequestInfoExample]
  -#worker=ajp13:jni
  -worker=ajp13:localhost:8009
  -# worker=ajp13:unixSocket
  +### Virtual host definitions ( in the vhost directory ) 
  +# No '/' in the name. 
  +# It _must_ be defined for each virtual host ( or bad things will happen in jk2.0, 
  +# later we might forgive you ) ( either manually or automatically )
  +
  +[uri:localhost:8080]
  +alias=127.0.0.1:8080
  +alias=myLocalHost:8080
  +
  +### Webapps definitions ( in each webapp )
  +# The name and context are equals ( that's how we know it's a context definition )
  +# Must be defined 
  +
  +[uri:/examples]
  +context=/examples
   
  +[uri:localhost:8080/examples]
  +context=/examples
   
   # Status worker. XXX protect it with <Location> and security settings,
   # it'll display all properties - including eventual secrets.
  +# 
  +[uri:/jkstatus]
  +context=/jkstatus
  +
  +### Per/uri mappings
  +
  +# Exact mapping
  +[uri:/examples/servlet/RequestHeaderExample]
  +
  +# Prefix mapping
  +[uri:/examples/servlet/RequestInfoExample/*]
  +
  +# Extension match
  +[uri:/examples/*.jsp]
  +
   [uri:/jkstatus/*]
  -worker=worker.status
  +worker=worker.status:
  +
  +## No other forms of mappings are currently supported
  +# Because the spec doesn't support them.
  +
  +
  
  
  

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

Reply via email to