> Can anyone advise me on getting this complicated setup right?
> 
> We have a website that will have some stuff served by Cocoon and some 
> served by Apache.
> 
> It is not easy to separate them out because we need to retain legacy 
> URLs. Likewise, it is not possible to give Cocoon served material a URL 
> prefix, primarily because we need Cocoon to serve the home page of the 
> site.
> 
>  From Cocoon:
> 
>       /
>       /index
>       /general/*
>       /archive/*
>       /x-space/*
>       etc. (about 10 items)
> 
>  From Apache:
> 
>       /images/*
>       /movies/*
>       /audio/*
>       /x-spaceprojects/*
>       /harlem/*
>       etc. (also about 10 items)


        I was able to move a large site (lots of legacy content and multiple virtual 
servers)
  over to serve everything thru Cocoon without changing any of the existing 
URLs.
  The apache.conf file looks like:

<VirtualHost www1.myserver.com>
  ServerName www1.myserver.com

<IfModule mod_webapp.c>
   WebAppConnection comConnection warp www1.myserver.com:8008
   WebAppDeploy cocoon   comConnection /
</IfModule>
</VirtualHost>


The Tomcat server.xml file has the cocoon directory as the default root:

        <Context path="" docBase="cocoon" debug="0" reloadable="true" />



        The only tricky part was handling the legacy CGI, that was handled by having 
another virtual server
        and then redirecting to it in the Cocoon sitemap.xmap file:

       <map:match pattern="cgi-bin/*">
            <map:redirect-to uri="http://www2.myserver.com/cgi-bin/{1}"/>
       </map:match>





-- 
 Dr. Everett (Skip) Carter      Phone: 831-641-0645 FAX:  831-641-0647
 Taygeta Scientific Inc.        INTERNET: [EMAIL PROTECTED]
 1340 Munras Ave., Suite 314    WWW: http://www.taygeta.com
 Monterey, CA. 93940            












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

Reply via email to