RE: how can i get static files REALLY been processed by apache ???Oh, i
missed th mod_jk-stuff.
Im doing mod_proxy as well, but like this:

# The static
RewriteCond /your/docroot/dir1/%{REQUEST_FILENAME}  -f
RewriteRule ^(.+)  /your/docroot/dir1/$1  [L]

# Cocoon running on 8080
RewriteRule ^(.+)  http://localhost:8080/cocoon/$1 [P]

Christoph


----- Original Message -----
From: "Christoph Gaffga" <[EMAIL PROTECTED]>
To: "Cocoon Users" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 6:51 PM
Subject: Re: how can i get static files REALLY been processed by apache ???


> Hi,
>
> I'm using RewriteCond and RewriteRule in my apache config for that
purpose.
> (http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond)
> (see also http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond)
>
> You can use -f with RewriteCond to check if the file exists, and if, catch
> it from hd.
> Something like the following should work:
>
> RewriteCond /your/docroot/dir1/%{REQUEST_FILENAME}  -f
> RewriteRule ^(.+)  /your/docroot/dir1/$1  [L]
>
> hope that helps
>
> Christoph Gaffga
> [EMAIL PROTECTED]
>


----- Original Message -----
From: Geoff Howard
To: [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 7:22 PM
Subject: RE: how can i get static files REALLY been processed by apache ???


Hussayn,
I am not an expert on mod_jk internals, nor am I up to date on where
development has moved in the last few months.  However, the last time I
checked into this I came away with the distinct impression that mod_jk
simply isn't capable of doing those two requirements together.  There was
some talk in jk2 of allowing negated, or even regexp expressions but AKAIK
the ability does not exist currently.
I think given the current options, for the scenario you describe below, your
best bet is to follow Pier's advice:
http://wiki.cocoondev.org/Wiki.jsp?page=ApacheModProxy
Geoff
> -----Original Message-----
> From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 12:14 PM
> To: [EMAIL PROTECTED]
> Subject: how can i get static files REALLY been processed by
> apache ???
>
>
> Hy;
>
> When i setup apache/tomcat/cocoon, i run into following
> fancy problem. Although what i want seems trivial, but i did not
> manage to get it done (I might not know the magic command to
> get round it)
>
> 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.
>
>
> Now how should i setup mod_jk.conf ????
>
> this doesn't help:
>
> <IfModule mod_jk.c>
>    JkWorkersFile /etc/httpd/conf/workers.properties
>    JkLogFile     /var/log/httpd/mod_jk.log
>    JkLogLevel error
>    JkMount /cocoon   cocoon
>    JkMount /cocoon/  cocoon
>    JkMount /cocon/*  cocoon
> </IfModule>
>
> because it redirects everything to cocoon. But apache shall
> serve the files mentioned above ...
>
> This is not complete (Indeed it can never be complete):
> <IfModule mod_jk.c>
>    JkWorkersFile /etc/httpd/conf/workers.properties
>    JkLogFile     /var/log/httpd/mod_jk.log
>    JkLogLevel error
>    JkMount /cocoon/*.xml   cocoon
>    JkMount /cocoon/*.jsp   cocoon
>    JkMount /cocon/*.foo    cocoon
>    ...
> </IfModule>
>
> The list could potentially go down endlessly.
> There MUST be an obvious solution to this!
>
> Anyone can help me here ?
>
> regards, Hussayn
>
> --
> Dr. Hussayn Dabbous
> SAXESS Software Design GmbH
> Neuenhöfer Allee 125
> 50935 Köln
> Telefon: +49-221-56011-0
> Fax:     +49-221-56011-20
> E-Mail:  [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to