Yes apache. Well, I thought it strange too that it wasnt passing the html, gif etc unless i added it to the workers2. So I can put this jkUriSet in the apache file. -nice Ill try this. This is what I did for mod_jk, but those jkmounts no longer worked in apache2.
Thanks! John > Just a simple questions, then an answer. > > If you are front-ending Tomcat with a web server, why are you passing > things like .html, .gif, .jpg, etc. to Tomcat to process? The web > server itself is a bit more efficient in handling this content. > > Secondly, what web server front end are you using? > > On Apache2/Tomcat4.1/mod_jk2, workers2.properties only defines my > workers, I set URI matching in my Apache Virtual Hosts Config; > > Add something similar to the following for each vhost (copy & pasts is a > wonderful thing). > > <VirtualHost myhost.com:80> > ... > <Location "/*.jsp"> > JkUriSet worker ajp13:localhost:8201 > </Location> > <Location "/*.do"> > JkUriSet worker ajp13:localhost:8201 > </Location> > <Location "/servlet/*"> > JkUriSet worker ajp13:localhost:8201 > </Location> > <Location "/servlets/*"> > JkUriSet worker ajp13:localhost:8201 > </Location> > <Location /WEB-INF/ > > AllowOverride None > deny from all > </Location> > </VirtualHost> > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 14, 2004 9:08 AM > To: Tomcat Users List > Subject: Help with mod_jk2 > > Hello all, > > I have gotten mod_jk2 working just fine for multiple instances of tomcat > and jvm. However, could one of you jk2 experts help me streamline this? > worker2.properties is a pain for each instance. Is there a way to set it > so that all processes are processed by tomcat instead of having the list > every single uri mapping? > > Heres example of a set of entries in my workers2.properties for one > instance: > [channel.socket:groupname] > info=ajp13 forwarding to privatejvm.com > debug=0 > group=groupname > port=8059 > host=localhost > > [ajp13:groupname] > channel:channel.socket:groupname > group=groupname > > [uri:domain1.com:80/*.html] > group=ajp13:groupname > > [uri:domain1.com:80/*.jsp] > group=ajp13:groupname > > [uri:domain1.com:80/*.xml] > group=ajp13:groupname > > [uri:domain1.com:80/*.do] > group=ajp13:groupname > > [uri:domain1.com:80/*.gif] > group=ajp13:groupname > > [uri:domain1.com:80/*.jpg] > group=ajp13:groupname > > [uri:domain1.com:80/*.png] > group=ajp13:groupname > > [uri:domain1.com:80/servlet/*] > group=ajp13:groupname > > [uri:domain1.com:80/manager/*] > context=/manager > group=ajp13:groupname > > [uri:domain1.com:80/admin/*] > context=/admin > group=ajp13:groupname > > [uri:domain1.com:80/servlets-examples/*] > context=/servlets-examples > group=ajp13:groupname > > [uri:www.domain1.com:80/*.html] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.jsp] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.xml] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.do] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.gif] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.jpg] > group=ajp13:groupname > > [uri:www.domain1.com:80/*.png] > group=ajp13:groupname > > [uri:www.domain1.com:80/servlet/*] > group=ajp13:groupname > > [uri:www.domain1.com:80/manager/*] > context=/manager > group=ajp13:groupname > > [uri:www.domain1.com:80/admin/*] > context=/admin > group=ajp13:groupname > > [uri:www.domain1.com:80/servlets-examples/*] > context=/servlets-examples > group=ajp13:groupname > > > then I have to do the above for domain2.com with different group name > and > port# > > Am I doing this right? It seems like a lot of entries compared to the > old > mod_jk. > > Thanks in advance! > > John > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]