cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Wilkes <>
Subject Re: how can i get static files REALLY been processed by apache ???
Date Thu, 13 Feb 2003 17:38:19 GMT
On Thu, Feb 13, 2003 at 06:14:22PM +0100, SAXESS - Hussayn Dabbous wrote:
> Here is the problem:
> 1.) I want all static files been served by apache, i.e.:
>     *.gif, *.html, *.jpg
> 2.) I want *ALL* other files be served by cocoon.

I ran into the same thing and from what I could find out is that you
really want a "!" operator on the JkMount directive.

> Now how should i setup mod_jk.conf ????
> The list could potentially go down endlessly.
> There MUST be an obvious solution to this!

Here's what I did, its just for the images but you could extend it to

Create a new website called "" in your
httpd.conf file.  Here's some snippets of my Apache2 one:
     # this all goes to cocoon, but need a docroot anyway
     DocumentRoot /usr/local/www/data/example
     # send all these requests to the coyote connector
     JkMount /* cocoon
     DocumentRoot /usr/local/www/data/example
So now when a request comes in you'll have Apache handle it differently
for "www" vs "images"

Its not that elegant to have references to
"" but hey, it gets the job
done.  You can tell cocoon to throw in the "static" a href for you so it
wouldn't be that much work.


Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message