If your version of Jk2 is recent enough, and was compiled with the Apache
regex library, then you should be able to do:
[uri:!/app/*.gif]
(of course you can always get more clever with regexps ;-).
I haven't actually tried it myself, but I'm told that it does work.
Mark Eggers [EMAIL PROTECTED]
Hi,
I'm running mod_jk2, with apache 2.0.45 and tomcat 4.1.24. In our
workers2.properties we've defined an application
[uri:/app/*]
worker=ajp13:localhost:8009
but we have other things in that directory such as .html, .jpeg. .gif that
we don't want to have passed to tomcat and other
Hi -
You don't exclude, you include.
Change /app/* to /app/*.jsp and /app/servlet/* or whatever.
John
On Tue, 17 Jun 2003 10:51:41 -0400, Steven Garrett
[EMAIL PROTECTED] wrote:
Hi,
I'm running mod_jk2, with apache 2.0.45 and tomcat 4.1.24. In our
workers2.properties we've defined an
Steve,
You would single out what you wish to have Tomcat
handle, and then Apache would handle the rest.
For example:
[uri:/app/*.jsp]
worker=ajp13:localhost:8009
[uri:/app/servlet/*]
worker=ajp13:localhost:8009
would send all files ending in .jsp and all files
underneath the /app/servlet uri
List
Subject: Re: possibly off topic: workers2.properties question
Steve,
You would single out what you wish to have Tomcat
handle, and then Apache would handle the rest.
For example:
[uri:/app/*.jsp]
worker=ajp13:localhost:8009
[uri:/app/servlet/*]
worker=ajp13:localhost:8009
would send all
List
Subject: Re: possibly off topic: workers2.properties question
Steve,
You would single out what you wish to have Tomcat
handle, and then Apache would handle the rest.
For example:
[uri:/app/*.jsp]
worker=ajp13:localhost:8009
[uri:/app/servlet/*]
worker=ajp13:localhost:8009
would send all files
Subject: Re: possibly off topic: workers2.properties question
Sure, that could be done, but I honestly don't see the value.
The only way
this is better or easier is if you have your servlets
spread out all
over the place. Otherwise, you can handle everything you
need with two
PROTECTED] Sent: Tuesday, June
17,
2003 10:16 AM
To: Tomcat Users List
Subject: Re: possibly off topic: workers2.properties question
Steve,
You would single out what you wish to have Tomcat
handle, and then Apache would handle the rest.
For example:
[uri:/app/*.jsp]
worker=ajp13
-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 11:20 AM
To: Tomcat Users List
Subject: Re: possibly off topic: workers2.properties question
You don't have to use the Invoker...my point was that
typically (at least
from what I have seen) people put
One of the ways you could accomplish the
/app/servlet/* mapping is to map each of your servlets
in the app's web.xml file with a:
servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/servlet/MyServlet/url-pattern
/servlet-mapping
for each servlet in your app.
Or do like struts and stick an extension on there. Struts uses *.do. Here
are the JkMounts for an app running on 4.1.12 on Solaris, using struts:
JkMount /myApp/*.do ajp13
JkMount /myApp/*.jsp ajp13
At that point, AFAIK, Tomcat will use the URL mapping in web.xml to
determine which
AM
To: Tomcat Users List
Subject: Re: possibly off topic: workers2.properties question
You don't have to use the Invoker...my point was that typically (at
least from what I have seen) people put their publicly accessible
servlets in one place. If they're all in one place, and typically
again.
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 1:49 PM
To: Tomcat Users List
Subject: Re: possibly off topic: workers2.properties question
The invoker servlet allows you to skip explicitly mapping
your servlet in
web.xml
: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday,
June 17, 2003 11:20 AM
To: Tomcat Users List
Subject: Re: possibly off topic: workers2.properties question
You don't have to use the Invoker...my point was that typically (at
least from what I have seen) people put their publicly
jkmount to /ser* ?
-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 12:29 PM
To: Tomcat Users List
Subject: Re: possibly off topic: workers2.properties question
On Wed, 18 Jun 2003 00:04, Mike Curwen wrote:
Maybe I'm missing
15 matches
Mail list logo