> From: Kreyñel, Conny [mailto:[EMAIL PROTECTED]]
> 
> Hi,
> 
> I have installed a Apache- and a Tomcat 4-Server and now I have
configured
> the Apache that for all domains the /go subdirectory forward to the
> cocoon-app via mod_webapp.
> 
> And now my problem. I could use a subdirectory for every domain like
this:
> 
> /cocoon/domain1
> /cocoon/domain2
> /cocoon/domain3 and so on.
> 
> And when I would use Cocoon with domain1 I had to access the server
like
> this: http://domain1/go/domain1/file.xml
> 
> Ok fine. But I would use a structure like that
http://domain1/go/file.xml
> and Cocoon should alone internal-redirect or -access the
> "virtual-domain"-subdirectory.
> 
> I could deploy Cocoon for every domain but this would not be so nice.
> 
> Can you help me how can I implement this?
> 

Try RegexpTargetHostMatcher or HostSelector. Something like this should
work for you:

<map:select type="name-of-the-host-selector-as-defined-in-sitemap">
  <map:when test="domain1">
    <map:mount ..../>
  </map:when>
  <map:when test="domain2">
    <map:mount ..../>
  </map:when>
  <map:otherwise>
    <map:mount ..../>
  </map:otherwise>
</map:match>

Regards,
Vadim


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

Reply via email to