On Fri, 13 Jul 2001 12:47:31 +0200, "Luca Morandini" <[EMAIL PROTECTED]> wrote:

> Arnaud,
> 
>       I don't  think that  C2 will serve  everything which is  passed to
> Apache if you  move it to ROOT. On the contrary,  it will serve only
> what Apache chooses to pass to Tomcat.
> 
>       For instance, you can choose to pass to Tomcat (and, subsequently,
> to Cocoon) only *.xml files or only what is in a specified URI (say,
> foo/bar/*).


On Fri, 13 Jul 2001 13:45:03 +0300, "Anders Lindh" <[EMAIL PROTECTED]> wrote:

>  If you use apache you tell it what requests to pass to Tomcat (with
> mod_jk or mod_jserv).  You can e.g tell it to  pass requests for all
> .xml  files   in  /cocoon  to  Tomcat  (and   cocoon  if  configured
> properly). This way all static content can be served by apache (x100
> faster) and all dynamic pages by tomcat/cocoon.

Well I understand but in the early years of C2, one important thing
was that the sitemap may "organize" the site cleanner...

If you only pass xml files to C2, you'll loose the ability to
construct dynamic pdf with the pdf extension and so on with .txt or
.sh or .jpg, and so on...

One or two month ago, I posted something I did with C2:
- one xml file with the user's datas;
- one xslt file to transform the user's datas into bash code to create
  linux user's;
- one xslt file to transform the user's datas into sql code to insert
  them into postgres;
- ont xslt file to render the user's datas in html.

So, you apply the file with the proper extension and C2 do the job!

If I want to do that, I have to mount C2 on an other webapp than the
ROOT one and pass * to /cocoon/ (on my system, /www/ ;))

Apache only serves /servlet and *.jps to ROOT.

In your configuration, what will you do if you got to serve static xml
files (example: applet configuration)?

I think the best way to use C2 is to give it a proper context or a
proper VirtualHost (if you can change your dns settings, I can not)...

--Arnaud

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

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

Reply via email to