Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 4989 invoked by uid 500); 13 Feb 2003 18:03:42 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 4938 invoked from network); 13 Feb 2003 18:03:41 -0000 Message-ID: <009501c2d388$9b237380$c801a8c0@deepford> From: "Christoph Gaffga" To: "Cocoon Users" Cc: References: <3E4BD26E.60306@saxess.com> Subject: Re: how can i get static files REALLY been processed by apache ??? Date: Thu, 13 Feb 2003 18:51:57 +0100 Organization: Triplemind Internet Services OHG MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 cgaffga@triplemind.com ----- Original Message ----- From: "SAXESS - Hussayn Dabbous" To: Sent: Thursday, February 13, 2003 6:14 PM 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: > > > JkWorkersFile /etc/httpd/conf/workers.properties > JkLogFile /var/log/httpd/mod_jk.log > JkLogLevel error > JkMount /cocoon cocoon > JkMount /cocoon/ cocoon > JkMount /cocon/* cocoon > > > because it redirects everything to cocoon. But apache shall > serve the files mentioned above ... > > This is not complete (Indeed it can never be complete): > > 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 > ... > > > 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: dabbous@saxess.com > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: