You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christofer Dutz <du...@c-ware.de> on 2004/10/20 10:52:51 UTC

hostname-prefix matching. How is it done?

Hi,

I use one cocoon instance to serve several domains using this match to 
redirect to sub-sitemaps.
          <map:match pattern="**">
              <map:mount uri-prefix="" 
src="{global:domains-home-dir}/{request-header:Host}/sitemap.xmap"/>
          </map:match>
Everything works fine this way. At the moment I want to add an 
administration interface and a webmail interface to
each domain the folowing way:
requests to hosts with names starting with "admin." (admin.domain.de) go 
to the admin-page
requests to hosts starting with "webmail." (webmail.domain.de) go to the 
webmail-interface
all other requests are processed as usual.
I once started with the regexp-host-matcher, but that seems to be 
removed from the current cocoon distribution. Well that's no
problem since I never got it to work :(

Any hints here?

Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: hostname-prefix matching. How is it done?

Posted by "Volkm@r" <pl...@arcor.de>.
Christofer Dutz wrote:
> [...]
> I once started with the regexp-host-matcher, but that seems to be 
> removed from the current cocoon distribution. Well that's no

                    ^-------------------------^
                        Is there a new one?

I'm having Cocoon 2.1.5.1 and RegexpHostMatcher is still
      "org.apache.cocoon.matching.RegexpHostMatcher"

Maybe you forgot to declare it in the <map:components> section?

You will find an example how to use the WildcardHostMatcher on the wiki 
page "http://wiki.apache.org/cocoon/VirtualHostingHostMatcher". This can 
be configured (and then does work) with RegexpHostMatcher as well.

If any problems with that description, please let me know.
-- 
Volkm@r


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org