Jeah, I understand, perhaps I should write under a different topic, but they are closely related and I thougt that perhaps someone know how to resolve my small problem. I think that mod_jk should include a decline posibility like: JkMount /* ajp13 JkMount /phpMyAdmin/* DECLINE JkMount /images/* DECLINE JkMount /*.php4 DECLINE with a best match served first. I have a rought patch that does this, but it's realy uggly.. This way it would be very simple to handle Apache/Php/Tomcat in one server /Andreas -----Original Message----- From: Jan Labanowski [mailto:[EMAIL PROTECTED]] Sent: den 2 februari 2001 21:35 To: '[EMAIL PROTECTED]' Cc: Jan Labanowski Subject: RE: JkMount for all context On Fri, 2 Feb 2001, Andreas Ljunggren (EIN) wrote: > What if I want tomcat to serve the root context eg / -> a servlet.. > but I want to be able to have /SomeThing/ that can use .php3 for instance ? Shinta asked for ALL content served from tomcat... If you want to serve only servlets and JSPs change all: JkMount /context1/* ajp13 to JkMount /context1/servlet/* ajp13 JkMount /context1/*.jsp ajp13 etc. ... Jan Jan K. Labanowski | phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center | Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, | http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 | http://www.osc.edu/ > > /A > > -----Original Message----- > From: Jan Labanowski [mailto:[EMAIL PROTECTED]] > Sent: den 2 februari 2001 21:28 > To: '[EMAIL PROTECTED]' > Cc: Jan Labanowski > Subject: Re: JkMount for all context > > > 1) If you want everything served by Tomcat, why bother with Apache? > > 2) I am afraid you cannot escape mounting each context separately both > in server.xml and in mod_jk.conf, i.e., > > JkMount /context1/* ajp13 > Alias /context1 "/your/full/path/to/context1" > <Directory "/your/full/path/to/context1"> > Options Indexes FollowSymLinks > </Directory> > <Location "/context1/WEB-INF/"> > AllowOverride None > deny from all > </Location> > <Location "/context1/META-INF/"> > AllowOverride None > deny from all > </Location> > > JkMount /context2/* ajp13 > Alias /context1 "/your/full/path/to/context2" > <Directory "/your/full/path/to/context2"> > Options Indexes FollowSymLinks > </Directory> > <Location "/context1/WEB-INF/"> > AllowOverride None > deny from all > </Location> > <Location "/context1/META-INF/"> > AllowOverride None > deny from all > </Location> > > JkMount /context3/* ajp13 > Alias /context3 "/your/full/path/to/context3" > <Directory "/your/full/path/to/context3"> > Options Indexes FollowSymLinks > </Directory> > <Location "/context1/WEB-INF/"> > AllowOverride None > deny from all > </Location> > <Location "/context1/META-INF/"> > AllowOverride None > deny from all > </Location> > > and in your server.xml > > <Context path="/context1" > docBase="/your/full/path/to/context1" > crossContext="true" > debug="0" > reloadable="true" > trusted="false" > > </Context> > > <Context path="/context2" > docBase="/your/full/path/to/context2" > crossContext="true" > debug="0" > reloadable="true" > trusted="false" > > </Context> > > <Context path="/context3" > docBase="/your/full/path/to/context3" > crossContext="true" > debug="0" > reloadable="true" > trusted="false" > > </Context> > > > On Fri, 2 Feb 2001, Shinta Tjio wrote: > > > How do you write a JkMount that will apply to all servlet context, > > assuming that the URI will always have 'servlet' in it? In other > > words, I don't want to write: > > JkMount /context1/servlet/myServlet ajp13 > > JkMount /context2/servlet/anotherOne ajp13 > > JkMount /context3/servlet/aThirdOne ajp13 > > > > I tried: > > JkMount /*/servlet/* ajp13 > > > > but this doesn't seem to give me what I want. The above > > line forwards ALL requests to Tomcat, including non > > servlet (static pages) requests. > > > > Any suggestions? > > > > thanks, > > shinta > > > > Jan K. Labanowski | phone: 614-292-9279, FAX: 614-292-7168 > Ohio Supercomputer Center | Internet: [EMAIL PROTECTED] > 1224 Kinnear Rd, | http://www.ccl.net/chemistry.html > Columbus, OH 43212-1163 | http://www.osc.edu/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]