Good, now we've got a config example. The works on autoconf stuff goes farther.
I could now generate build.properties from a build.properties.autoconf (I keep .sample untouched). The autoconf is more modularized, thanks to Doctor M4 Pier ;) - Henri Gomez ___[_]____ EMAIL : [EMAIL PROTECTED] (. .) PGP KEY : 697ECEDD ...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Friday, May 17, 2002 2:35 AM >To: [EMAIL PROTECTED] >Subject: cvs commit: jakarta-tomcat-connectors/jk/conf >workers2.properties > > >costin 02/05/16 17:35:18 > > Modified: jk/conf workers2.properties > Log: > Update the worker.properties. > > We use a special property 'info' for comments, that allows >jk_config.c to > preserve them when saving. Any # comment will be lost. > > I'll start working on docs and the jmx wrapper, most of the code > should be stable and working fine. > > Revision Changes Path > 1.12 +67 -101 >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.11 > retrieving revision 1.12 > diff -u -r1.11 -r1.12 > --- workers2.properties 6 May 2002 22:48:56 -0000 1.11 > +++ workers2.properties 17 May 2002 00:35:18 -0000 1.12 > @@ -1,142 +1,108 @@ > -# Comments will be lost when protocol-based config will be used > -# ( at least in the first version ). In a future version we'll save > -# the comments before every section and property and save ( maybe ) > - > -# Global options ( in addition to the pre-defined fs, ps, java_home > -[config] > -## TOMCAT_HOME, CATALINA_HOME, JAVA_HOME and LD_LIBRARY_PATH > -# must be set for the jni worker to operate. > -debugEnv=0 > - > - > -# Logger options. For apache2 only level can be set ( it >logs to apache's error.log ) > [logger] > level=DEBUG > -# File property is not used on Apache2 or if a 'native' >logger is available > -# The Apache2 ( or native ) log file is used instead > -# For apache1 the file must be specified if you want logging. > -# file=logs/mod_jk.log > > -[shm] > -file=${serverRoot}/logs/jk2.shm > -size=1000000 > +[config:] > +file=${serverRoot}/conf/workers2.properties > +debug=0 > +debugEnv=0 > > -[uriMap] > +[uriMap:] > +info=Maps the requests. Options: debug > debug=0 > > -[workerEnv] > +[shm:] > +info=Scoreboard. Required for reconfiguration and status >with multiprocess servers > +file=${serverRoot}/logs/jk2.shm > +size=1000000 > debug=0 > +disabled=0 > > -#################### Channels #################### > -# Each channel defines a communication mechanism to a >tomcat instance. > -# Each channel is associated with a ajp13:NAME, with the >same local name > +[workerEnv:] > +info=Global server options > +timing=1 > +debug=0 > > +[lb:lb] > +info=Default load balancer. > +debug=0 > > -# Default channel > -#[channel.socket:localhost:8009] > -#lb_factor=1 > -#tomcatId=localhost:8009 > +[lb:lb_1] > +info=A second load balancer. > +debug=0 > > +[channel.socket:localhost:8009] > +info=Ajp13 forwarding over socket > +debug=0 > +tomcatId=localhost:8009 > > -# Example additional socket channel. The location is in the >name ( URL-style > [channel.socket:localhost:8019] > +info=A second tomcat instance. > +debug=0 > tomcatId=localhost:8019 > lb_factor=1 > -group=lb_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 > > - > -# Example unix socket. > -# XXX We must use an explicit setting to use substitution - >resolve this > -[channel.apr:${TOMCAT_HOME}/work/jk2.socket] > -tomcatId=localhost:8009 > -lb_factor=0 > - > - > -# > -# The JNI channel is enabled and configured automatically > -# if a VM is detected and tomcat started. > [channel.jni:jni] > +info=The jni channel, used if tomcat is started inprocess > > -#################### Workers #################### > -# All non-ajp13 workers or workers with special configurations > -# There is no configuration for ajp13 workers - you just configure > -# channels > - > -# The status worker. > -[worker.status] > - > +[status:] > +info=Status worker, displays runtime informations > > -# Requirements: libjvm.so MUST BE INCLUDED in >LD_LIBRARY_PATH for this > -# 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] > -# That will work with both 3.x and 4.x. > +[vm:] > +info=Parameters used to load a JVM in the server process > OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar > OPT=-Dtomcat.home=${TOMCAT_HOME} > OPT=-Dcatalina.home=${TOMCAT_HOME} > OPT=-Xmx128M > -#OPT=-Djava.compiler=NONE > - > +disabled=1 > > [worker.jni:jniCmd1] > +info=Command to be executed by the VM. This one will start tomcat. > +class=org.apache.jk.apr.TomcatStarter > ARG=start > +disabled=1 > > +[uri:/jkstatus/*] > +info=Display status information and checks the config file >for changes. > +group=status: > > -#################### Locations #################### > -# XXX Uris to be read from separate file, one per webapp. > -# XXX Webapps to be declared automatically, using webapps/ >content :-) > - > - > -### 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:/examples1] > -context=/examples > +[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:localhost:8080/examples] > +[uri:/examples] > +info=Example webapp in the default context. > context=/examples > - > -# Status worker. XXX protect it with <Location> and >security settings, > -# it'll display all properties - including eventual secrets. > -# > -[uri:/jkstatus/*] > -group=worker.status: > - > -### Per/uri mappings > - > -# Exact mapping > -[uri:/examples/servlet/RequestHeaderExample] > - > -# Prefix mapping > -[uri:/examples/servlet/RequestInfoExample/*] > - > -[uri:/examples/*] > +debug=0 > > [uri:/examples1/*] > -# XXX The setting should be only on host and context > +info=A second webapp, this time going to the second tomcat only. > group=lb_1 > +debug=0 > + > +[uri:/examples/servlet/*] > +info=Prefix mapping > > -# Extension match > [uri:/examples/*.jsp] > +info=Extension mapping > > -## No other forms of mappings are currently supported > -# Because the spec doesn't support them. > +[uri:/examples/*] > +info=Map the whole webapp > > +[uri:/examples/servlet/HelloW] > +info=Exampel with debug enabled. > +debug=10 > > > > > >-- >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]>