Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Ryan Hoegg
SAXESS - Hussayn Dabbous wrote: JkMount /cocon/* cocoon Not sure you meant cocon here... typo in your e-mail or your config? - Please check that your question has not already been answered in the FAQ before posting.

RE: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Luca Morandini
Hussayn, I know it is not a smart solution, but it worked for me. 1) Setup mod_jk to redirect everything starting with myapp to Tomcat/Cocoon 2) Setup an alias named myapp-static pointed to a directory containing your static files 3) Use URI like /myapp/dynamic.htlm for dynamic content and URI

Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread SAXESS - Hussayn Dabbous
Hy; yes, it is a typo... but my problem remains when i correct the typo .. remember: i want to EXCLUDE some files to be forwarded to cocoon, and i didn't find HOW i can get JK to do this... JkMount /cocoon/* cocoon == mount everything JkNoMount *.gif, *.jpg cocoon == but not these while

Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Chris Wilkes
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

Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread SAXESS - Hussayn Dabbous
hy, thats a very pragmatic idea. i like such approaches. but, hmm... wouldn't this need lots of static links in your pages ??? i mean, you really must point to the myapp-static pages with absolute links. What about maintenance ... ??? seems as if i need to do it in this way, or let cocoon serve

Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread SAXESS - Hussayn Dabbous
Hy, Your last comment sounds very promising. How could i let cocoon throw in the static refs ??? Wouldn't that mean i need cocoon to find the hrefs and do some replacement stuff there. Or how would i do that? any pointers to howto, docs or so ? regards, hussayn Its not that elegant to have

Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Lajos
Hi Hussayn - Here is what I do in almost every cocoon app I do: map:match pattern=styles.css map:read mime-type=text/css src=/styles/styles.css/ /map:match map:match pattern=**/styles.css map:read mime-type=text/css src=/styles/styles.css/ /map:match map:match pattern=*.gif map:read

RE: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Luca Morandini
[EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Lajos [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 6:48 PM To: [EMAIL PROTECTED] Subject: Re: how can i get static files REALLY been

RE: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Luca Morandini
-Original Message- From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 6:41 PM To: [EMAIL PROTECTED] Subject: Re: how can i get static files REALLY been processed by apache ??? thats a very pragmatic idea. i like such approaches. but, hmm

Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread SAXESS - Hussayn Dabbous
Hey, Lajos; i see we are all very creative people ;-) Another cool idea how to get around the problem. The one thing i am *really* uncomfortable with this solution is the sequence: 1.) browser requests .img 2.) apache forwards request to tomcat 3.) tomcat forwards request to cocoon 4.) cocoon

Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Christoph Gaffga
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

Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Chris Wilkes
Fixing the top posting a little bit... Here's what I did, its just for the images but you could extend it to anything: Create a new website called images.examples.com in your httpd.conf file. Here's some snippets of my Apache2 one: VirtualHost 10.0.0.181 ServerName

Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Christoph Gaffga
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

RE: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Geoff Howard
Title: 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

Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Christoph Gaffga
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

Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Lajos
Ok, there is another way. Say you have your top level directories - images, scripts, style - under DocumentRoot, so they are served by Apache. Then, you have specific Cocoon applications forwarded to Cocoon in Tomcat via JkMount's: JkMount /myapp1 ajp13 JkMount /myapp2 ajp13 etc. Then, in