cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Virtual-domain-directorys in Cocoon2
Date Wed, 09 Jan 2002 16:57:38 GMT
> From: KreyĐŻel, Conny [mailto:Conny.Kreyssel@INTER-FORUM.DE]
> 
> 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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message