cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gianugo Rabellino <gian...@apache.org>
Subject Re: How do you obtain the virtual host name without the port.
Date Sun, 04 Apr 2004 22:32:26 GMT
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 www.example1.com:8080 and not
>> www.example1.com .
>>  
>>
> 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').

Ciao,

-- 
Gianugo Rabellino
Pro-netics s.r.l. -  http://www.pro-netics.com
Orixo, the XML business alliance - http://www.orixo.com
     (Blogging at: http://www.rabellino.it/blog/)

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


Mime
View raw message