cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: How do you obtain the virtual host name without the port.
Date Sun, 04 Apr 2004 18:25:07 GMT
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".

Regards, Upayavira

>----- Original Message ----- 
>From: "Upayavira" <uv@upaya.co.uk>
>To: <users@cocoon.apache.org>
>Sent: Sunday, April 04, 2004 12:57 AM
>Subject: Re: How do you obtain the virtual host name without the port.
>
>
>  
>
>>dave- wrote:
>>
>>    
>>
>>>How can you obtain the virtual host name without the port?
>>>
>>>For example, <map:match type="host" pattern="**"> includes the port in
>>>{1}.
>>>
>>>      
>>>
>>Never used it, but could you try <map:match type="host" pattern="*:*">
>>and then use {1}, and ignore {2} which will be your port number.
>>
>>Regards, Upayavira
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>



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


Mime
View raw message