cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira>
Subject Re: How do you obtain the virtual host name without the port.
Date Mon, 05 Apr 2004 05:37:36 GMT
Gianugo Rabellino wrote:

> Upayavira wrote:
>> dave- wrote:
>>> That does not work because {1} appears to pick up both the host AND the
>>> port.  For example, {1} picks up and not
>>> .
>> Don't understand. That's not how wildcard matchers work. If you've 
>> got pattern="*:*", then {1} should be everything before the colon, 
>> and {2} should be everything after. If that doesn't work, try 
>> pattern="*:8080".
> But that's _not_ how the Host matcher works: it's regexp and not 
> wildcard bases, so you have to use regexp syntax as in ".*:.*" (dunno 
> if greedy regexp behaviour would kick in tho').

Nah. There's a WildcardHostMatcher and a RegexpHostMatcher. Could be 
either. But if you're using the regexp one, then your syntax is correct.

Regards, Upayavira

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message