tomcat-users mailing list archives

Bruno,
>> Hmm... I didn't know that one could "upload file" to an email...
>> consider using copy/paste in the future. It seems to have worked, here.
>
> I'm using www.nabble.com...
Ah. I think the list will clip-out attachments. I'm not sure of the
rules, but copy/paste pretty much always works.
>>> JkMount /cocoon/* ajp13
>
> This one works and all the others but tomcat does the job for all the files
> (static content and all)
That's because you said "anything that starts with "/cocoon/" should go
to Tomcat. If you don't want Tomcat to serve those files, then don't use
that kind of JkMount directive.
> What I wan't to do is let Apache serve static content and tomcat serve
> dynamic one...
Apache httpd can only test based upon URI... it has no idea if a
resource will be static or dynamic. You have to map your URIs appropriately.
> In the /jsp-examples everything works fine... I have images, index.html and
> I can run .jsp...
> This is the strange problem I've mentioned.
It's not strange at all: you told Tomcat to handle everything (for
example) for "/cocoon/*". That's /everything/, regardless of it's
static-ness. If you know that cocoon is required for 25 different URIs,
then simply list them all. Or, if you know that cocoon only serves
content for URIs more like this:
/cocoon/a/b/c/*.html
...then only map that portion of the URI space into Tomcat.
Apache httpd is doing /exactly/ what you've asked it to do. You just
need to configure it to do what you want it to do.
-chris