cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Refondini <>
Subject Re: Organizing own project in cocoon?
Date Thu, 02 Mar 2006 13:52:22 GMT wrote:
> - I don't know how to mount the application into a top-level URI, not
> under 'samples'.

One "host name based" solution I discovered lately while trying to 
redirect several different domains (virtual hosts) to a single Cocoon 
deployment is as follow.

Extract of the top level Cocoon sitemap.xmap

       | Selectors are executed during pipeline setup. They can be used to
       | determine which pipeline fragments should be combined. They are 
       | compared with a java switch statement.
   <map:selectors default="browser">


     <!-- ADDED -->

       <host name="my1st-site" value=""/>
       <host name="my1st-site" value=""/>
       <host name="my2nd-site" value=""/>
       <host name="my2nd-site" value=""/>




  <!-- main pipeline -->

     <!-- ADDED -->
       <map:when test="my1st-site">
           <map:mount uri-prefix="" src="first/sitemap.xmap"/>
       <map:when test="my2nd-site">
           <map:mount uri-prefix="" src="second/sitemap.xmap"/>
           <map:mount uri-prefix="" src="sitemap.xmap"/>




> Thanks

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message