If you're using the ajp (mod_jk) connectors and including the generated config in your Apache config you can add this sort of thing to your server.xml
<Host name="yourHost" > <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true" /> <Context path="/cocoon" docBase="webapps/cocoon" debug="0" reloadable="true" > </Context> <Context path="" docBase="yourDocBase" /> <Context path="/examples" docBase="webapps/examples" crossContext="false" debug="0" reloadable="true" > </Context> </Host> ...Peter Cocoon User writes: > > i use apache for the virtual hosting > apache point to a .html file > this html is alink to tomcat > > /home/site1.com/htdocs > /home/site2.com/htdocs > > using apache > > www.site1.com ---> /home/site1.com/htdocs/index.html > then using index.html -->..tomcat.. .. /home/site1.com/htdocs/*.xml > > for each vhosti i have a seperate sitemap.xmap > > > kounis stavros > http://www.osmosis.gr > gounisclubmobil.com > > > > On Sat, 16 Feb 2002, Francesco Lunelli wrote: > > > > > > > Hello to everybody. > > I have just installed Cocoon2 overe Jakarta-Tomcat 4.0.1 and it works > > fine. But actually I am managine some different virtual hosts with > > romcat. I would like to know if it is possible to use Coccon to > > transform xml pages for this multiple virtual hosts. > > If I have for example www.mydomain1.com and www.mydomain2.com and I have > > my xml and xsl files sored in 2 different directories, I need that the > > index.xml page could be transformed in index.html , without haveing > > cocoon path in my url. > > I have tried to create 2 virtual hosts in tomcat, but cocoon doesn't > > perform the transformation. > > I created 2 different directories like these cocoon/mydomani1 and > > cocoon/mydomain2 mapped in server.xml as www.mydomani1.com and > > www.mydomain2.com, I reach the right directory but I can't get the > > cocoon trnsformation. > > I added the right map:match to sitemap. > > If I try to get the page from the main site www..../cocoon/mydomain1 I > > get the transformation, but not if I try to access directly wihtout > > coccon in my path. > > Is there a way to manage multiple virtual hosts? > > Thanks to everybody > > Francesco Lunelli > > > > > > > > --------------------------------------------------------------------- > > 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]> > > > > > --------------------------------------------------------------------- > 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]> --------------------------------------------------------------------- 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]>