DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9525>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9525

HostSelector cannot select between more than 7 different hosts

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME



------- Additional Comments From [EMAIL PROTECTED]  2002-05-31 14:49 -------
This works perfectly for me, tested with localhost (returns correct page) and 
<machine-name> (returns 404).


<?xml version="1.0"?>

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
  <map:components>
    <map:generators default="file"/>
    <map:serializers default="html"/>
    <map:transformers default="xslt"/>
    <map:readers default="resource"/>
    <map:matchers default="wildcard"/>
    <map:selectors default="browser">
      <map:selector name="host" src="org.apache.cocoon.selection.HostSelector">
        <host name="host1" value="host1.domain.com"/>
        <host name="host2" value="host2.domain.com"/>
        <host name="host3" value="host3.domain.com"/>
        <host name="host4" value="host4.domain.com"/>
        <host name="host5" value="host5.domain.com"/>
        <host name="host6" value="host6.domain.com"/>
        <host name="host7" value="host7.domain.com"/>
        <host name="host8" value="host8.domain.com"/>
        <host name="host9" value="localhost"/>
      </map:selector>
    </map:selectors>
  </map:components>

  <map:pipelines>
    <map:pipeline>
      <map:select type="host">
        <map:when test="host1">
           <map:mount uri-prefix="" src="/www/host1/sitemap/" check-
reload="yes"/>
        </map:when>
        <map:when test="host2">
           <map:mount uri-prefix="" src="/www/host2/sitemap/" check-
reload="yes"/>
        </map:when>
        <map:when test="host3">
           <map:mount uri-prefix="" src="/www/host3/sitemap/" check-
reload="yes"/>
        </map:when>
        <map:when test="host4">
           <map:mount uri-prefix="" src="/www/host4/sitemap/" check-
reload="yes"/>
        </map:when>
        <map:when test="host5">
           <map:mount uri-prefix="" src="/www/host5/sitemap/" check-
reload="yes"/>
        </map:when>
        <map:when test="host6">
           <map:mount uri-prefix="" src="/www/host6/sitemap/" check-
reload="yes"/>
        </map:when>
        <map:when test="host7">
           <map:mount uri-prefix="" src="/www/host7/sitemap/" check-
reload="yes"/>
        </map:when>
        <!-- This host always returns Error 404 -->
        <map:when test="host8">
           <map:mount uri-prefix="" src="/www/host8/sitemap/" check-
reload="yes"/>
        </map:when>
        <map:when test="host9">
           <map:mount uri-prefix="" src="../bug4641/" check-reload="yes"/>
        </map:when>
      </map:select>
    </map:pipeline>
  </map:pipelines>
</map:sitemap>

<!-- end of file -->

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

Reply via email to