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. http://xml.apache.org/cocoon/faq/index.html

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




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 like 
/myapp-static/static.html for static content

This has the advantage of scaling up well: we have three web-servers serving the 
static content (/myapp-static/*) and one
app-server serving the Cocoon-generated content (/myapp/*).

Regards.

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


 -Original Message-
 From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 6: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/*.foococoon
...
 /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]




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 the first directive is well documented, the secnd
is what i need, but it doesn't exist. so the question is,
how can i get what i want ? ;-(

regards, hussayn


Ryan Hoegg wrote:

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. http://xml.apache.org/cocoon/faq/index.html

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



--
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]




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 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
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  www.example.com
 # 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
   /VirtualHost
   VirtualHost 10.0.0.181
 ServerName  images.example.com
 DocumentRoot /usr/local/www/data/example
   /VirtualHost
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
http://static.example.com/path/to/myhelp.html; 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.

Chris

-
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]




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 everything ;-(

Maybe i can plugin something in to apache, or would it be
a big problem to get mod_JK do what i want (hacking ...) ???
I'll go and ask the apache-group ...
and report back, what i get from there maybe in a Wiki ;-) ?

anyway thanks for the tip...

regards, hussayn


Luca Morandini wrote:

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 like /myapp-static/static.html for static content

This has the advantage of scaling up well: we have three web-servers serving the static content (/myapp-static/*) and one
app-server serving the Cocoon-generated content (/myapp/*).

Regards.

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-




-Original Message-
From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 6: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/*.foococoon
  ...
/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]



--
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]




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 references to
 http://static.example.com/path/to/myhelp.html; 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.


Chris Wilkes wrote:

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
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  www.example.com
 # 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
   /VirtualHost
   VirtualHost 10.0.0.181
 ServerName  images.example.com
 DocumentRoot /usr/local/www/data/example
   /VirtualHost
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
http://static.example.com/path/to/myhelp.html; 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.

Chris

-
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]



--
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]




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 mime-type=image/gif src=/images/{1}.gif/
/map:match
map:match pattern=**/*.gif
 map:read mime-type=image/gif src=/images/{2}.gif/
/map:match

Any gif or css (and you can do the same for jpg, js, etc.) gets 
redirected to the appropriate directory off the webserver root, and 
hence is served by Apache. So, under Apache's DocumentRoot I have 
/images, /styles, /scripts, etc., etc.

Regards,

Lajos


SAXESS - Hussayn Dabbous wrote:
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 everything ;-(

Maybe i can plugin something in to apache, or would it be
a big problem to get mod_JK do what i want (hacking ...) ???
I'll go and ask the apache-group ...
and report back, what i get from there maybe in a Wiki ;-) ?

anyway thanks for the tip...

regards, hussayn


Luca Morandini wrote:


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 like 
/myapp-static/static.html for static content

This has the advantage of scaling up well: we have three web-servers 
serving the static content (/myapp-static/*) and one
app-server serving the Cocoon-generated content (/myapp/*).

Regards.

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-



-Original Message-
From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 6: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/*.foococoon
  ...
/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]






--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


-
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 

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

2003-02-13 Thread Luca Morandini
Lajos,

sure this is more elegant, but also slower than using the web-server directly... I 
hate going back to the Application server if not
absolutely necessary :(

Regards,

-
   Luca Morandini
   GIS Consultant
  [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 processed by apache
 ???


 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 mime-type=image/gif src=/images/{1}.gif/
 /map:match
 map:match pattern=**/*.gif
   map:read mime-type=image/gif src=/images/{2}.gif/
 /map:match

 Any gif or css (and you can do the same for jpg, js, etc.) gets
 redirected to the appropriate directory off the webserver root, and
 hence is served by Apache. So, under Apache's DocumentRoot I have
 /images, /styles, /scripts, etc., etc.

 Regards,

 Lajos


 SAXESS - Hussayn Dabbous wrote:
  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 everything ;-(
 
  Maybe i can plugin something in to apache, or would it be
  a big problem to get mod_JK do what i want (hacking ...) ???
  I'll go and ask the apache-group ...
  and report back, what i get from there maybe in a Wiki ;-) ?
 
  anyway thanks for the tip...
 
  regards, hussayn
 
 
  Luca Morandini wrote:
 
  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 like
  /myapp-static/static.html for static content
 
  This has the advantage of scaling up well: we have three web-servers
  serving the static content (/myapp-static/*) and one
  app-server serving the Cocoon-generated content (/myapp/*).
 
  Regards.
 
  -
 Luca Morandini
 GIS Consultant
[EMAIL PROTECTED]
  http://utenti.tripod.it/lmorandini/index.html
  -
 
 
 
  -Original Message-
  From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 13, 2003 6: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/*.foococoon
...
  /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

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... 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 ... ???

Not really, I've put up this URIs in global parameter and refer to these variables in 
my XSLs: just a change in one XML file if you
want to change these URIs.
BTW, this way is already described in the Cocoon FAQ 
http://xml.apache.org/cocoon/faq/faq-configure-environment.html#faq-4


 I'll go and ask the apache-group ...
 and report back, what i get from there maybe in a Wiki ;-) ?

If you find something better, please, report it back in order to change 
afore-mentioned FAQ.

Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-




 hy,



 seems as if i need to do it in this way, or let cocoon
 serve everything ;-(

 Maybe i can plugin something in to apache, or would it be
 a big problem to get mod_JK do what i want (hacking ...) ???


-
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]




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 processes and redirects.
5.) apache redirects
6.) browser calls apache
7.) apache serves the file


hmm. performance again ??


i really would prefer something like:

1.) browser requests .img
2.) apache serves the file

ill need to switch on my hackers-brain-partition ;-)
Thanks again for your answers...

regards, hussayn


Lajos wrote:

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 mime-type=image/gif src=/images/{1}.gif/
/map:match
map:match pattern=**/*.gif
 map:read mime-type=image/gif src=/images/{2}.gif/
/map:match

Any gif or css (and you can do the same for jpg, js, etc.) gets 
redirected to the appropriate directory off the webserver root, and 
hence is served by Apache. So, under Apache's DocumentRoot I have 
/images, /styles, /scripts, etc., etc.

Regards,

Lajos


SAXESS - Hussayn Dabbous wrote:

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 everything ;-(

Maybe i can plugin something in to apache, or would it be
a big problem to get mod_JK do what i want (hacking ...) ???
I'll go and ask the apache-group ...
and report back, what i get from there maybe in a Wiki ;-) ?

anyway thanks for the tip...

regards, hussayn


Luca Morandini wrote:


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 
like /myapp-static/static.html for static content

This has the advantage of scaling up well: we have three web-servers 
serving the static content (/myapp-static/*) and one
app-server serving the Cocoon-generated content (/myapp/*).

Regards.

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-



-Original Message-
From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 6: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/*.foococoon
  ...
/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]








--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH

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 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: SAXESS - Hussayn Dabbous [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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:

 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/*.foococoon
...
 /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]




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  www.example.com
  # 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
/VirtualHost
VirtualHost 10.0.0.181
  ServerName  images.example.com
  DocumentRoot /usr/local/www/data/example
/VirtualHost
 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
 http://static.example.com/path/to/myhelp.html; 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.
On Thu, Feb 13, 2003 at 06:46:52PM +0100, SAXESS - Hussayn Dabbous wrote:
 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 ?

My needs were pretty simple where I wanted to have some standard images
on a page so I included it in the XSLT to make the webpage.  Not sure if
that's the correct way of doing it, in fact I'm a little concerned that I
might be using XSLTs in a way that they shouldn't be used:

  xsl:template match=topmiddle
xsl:comment Horizontal guides /xsl:comment
img src=http://images.example.com/blue.gif;/img
br/br
img src=http://images.example.com/white.gif;/img
  /xsl:template

You might be able to workup some sort of xsl: if text clause to
manipulate the {link} reference to go to the static page.

Chris

-
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]




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 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: SAXESS - Hussayn Dabbous [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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:

 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/*.foococoon
...
 /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]




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 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]

 

 

 





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 ^(.+)  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/*.foococoon
...
 /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]




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 the XSLs that produce the HTML in your Cocoon apps, you just 
put /images, /scripts, /style for all *.gif, *.jpg, *.js, *.css files. 
So, nothing will ever get routed thru Tomcat.

Luca is right that is is inefficient to use the pipelines the way I 
suggest. And in fact, for galatea.com I do just what I suggest above: 
all my gif, jpg, css and js references start from the root so never get 
to Cocoon.

Regards,

Lajos


SAXESS - Hussayn Dabbous wrote:
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 processes and redirects.
5.) apache redirects
6.) browser calls apache
7.) apache serves the file


hmm. performance again ??


i really would prefer something like:

1.) browser requests .img
2.) apache serves the file

ill need to switch on my hackers-brain-partition ;-)
Thanks again for your answers...

regards, hussayn


Lajos wrote:


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 mime-type=image/gif src=/images/{1}.gif/
/map:match
map:match pattern=**/*.gif
 map:read mime-type=image/gif src=/images/{2}.gif/
/map:match

Any gif or css (and you can do the same for jpg, js, etc.) gets 
redirected to the appropriate directory off the webserver root, and 
hence is served by Apache. So, under Apache's DocumentRoot I have 
/images, /styles, /scripts, etc., etc.

Regards,

Lajos


SAXESS - Hussayn Dabbous wrote:

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 everything ;-(

Maybe i can plugin something in to apache, or would it be
a big problem to get mod_JK do what i want (hacking ...) ???
I'll go and ask the apache-group ...
and report back, what i get from there maybe in a Wiki ;-) ?

anyway thanks for the tip...

regards, hussayn


Luca Morandini wrote:


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 
like /myapp-static/static.html for static content

This has the advantage of scaling up well: we have three web-servers 
serving the static content (/myapp-static/*) and one
app-server serving the Cocoon-generated content (/myapp/*).

Regards.

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-



-Original Message-
From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 6: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/*.foococoon
  ...
/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: