cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Flynn <pfl...@ucc.ie>
Subject Re: Restricting access by IP address
Date Mon, 14 Sep 2009 09:41:20 GMT
Thomas Markus wrote:
> hi,
> 
> look at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#access
> 
> or use a matcher/selector in your sitemap
> 
> <map:select type="parameter">
>     <map:parameter name="parameter-selector-test"
> value="{request:remoteAddr}" />
>     <map:when test="127.0.0.1">
>         <!-- actions for this ip -->
>     </map:when>
>     <map:otherwise>
>         <!--  -->
>     </map:otherwise>
> </map:select>

That look like the right approach...except I can't find any 
documentation at 
http://cocoon.apache.org/2.2/core-modules/core/2.2/840_1_1.html on the 
syntax of the test attribute.

What I'm looking for is something like
    test="substring($parameter-selector-test,1,7)='xxx.yyy'"

Your example looks as if test is a binary operator implying equality, 
but the documentation is blank about this.

///Peter

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


Mime
View raw message