I don't think you need mod_rewrite. Look at the WildcardHostMatcher.
If you have more questions, email me privately since we are straying off-topic here (and it'll spawn an endless thread of people admonishing the people talking about the people complaining about off-topic posts ;) )
Regards,
Lajos
Alexander Czernay wrote:
Hi Lajos,
thanks for your help. I read through your pages and it sounds to me like I have to use the mod_rewrite technique to accomplish my goal. But I'm afraid I don't know the rewrite mechanism enough to get it going.
It would be great, if you could help me again with that.
This is kind of a special case, as I set up Cocoon to serve two sites from the same directory, using different XSLTs for the different design.
The structure, defined in my sitemap, is mainly like this:
/cocoon - just the usual one
/cocoon/k8 - this is bundling the two sites
/cocoon/k8/alexander - this is the first site to be mapped to one domain
/cocoon/k8/moritz - this is the second site to be mapped to the other domain
Maybe this is completly wrong, so if I should have done it another way, please tell me.
Thanks for any help,
Alexander
Lajos wrote:
Hi Alexander -
There are several ways you can do this - see my Cocoon notes at http://www.galatea.com/flashguides/cocoon-tips-2.xml (or my book ;) ). Probably the best is simply to make the cocoon webapp your default context in server.xml:
<Context path="" docBase="cocoon" debug="0"/>
Regards,
Lajos
Alexander Czernay wrote:
I'm trying to integrate my servlet (Apache Cocoon 2.0.4), running inside Tomcat 4.0.4 into my Apache 1.36. This works perfectly well, but I'd like to get rid of the /cocoon/ part in the URL, so I can map the whole Cocoon based app directly to my domain.
I tried some Alias commands and some MountJk commands, but that doesn't work, as it seems to me like Apache doesn't pass the whole path to Tomcat, thus Tomcat doesn't search inside its /cocoon/ path, but rather in its root path - that obviously doesn't work.
Any hints?
Alexander
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-- Lajos Moczar ---------------------------------------- Open Source Support, Consulting and Training ---------------------------------------- Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _____ / \ / /___\ / / \ /____ http://www.galatea.com -- powered by AzSSL --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]