Hi,
I am running Cocoon as a tomcat web application. I am using Apache as a front end to all requests that come to my server. Then i configured the apache mod_jk2 module to forward certain URLs to Tomcat. Particulary to cocoon (webapps/cocoon). I have two website developed under cocoon. One of them is under webapps/cocoon/site1 and the other one under webapps/cocoon/site2. Both domains names point to cocoon root directory (i tried pointing them to the subdirectory but it does not recognises them as a webapp).
So, i have:
domain1.com => webapps/cocoon
domain2.com => webapps/cocoon

I thought i could configure cocoon matchers to match directly urls but it does not work. I tried:

<map:match pattern="http://www.domain1.com";>
     <map:generate src="domain1/content/index.xml"/>
     <map:transform src="domain1/style/xsl/presentation.xsl" />
     <map:serialize type="xhtml"/>
</map:match>

<map:match pattern="http://www.domain2.com";>
     <map:generate src="domain2/content/index.xml"/>
     <map:transform src="domain2/style/xsl/presentation.xsl" />
     <map:serialize type="xhtml"/>
</map:match>

Can anyone point what should i do, two manage two domains names within cocoon?

thanks in advanced for the help,
Sergio

--
Sergio del Amo Caballero
email: [EMAIL PROTECTED]
MoonSunWeb Design http://moonsunweb.com
"Just another point of view"


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