That is perfect. exactly what I needed. Thank you very much =)

-Alexander


Jeff Nokes wrote:
> 
> $r->hostname()  <=>  HTTP_HOST  apache ENV <=> Equivalent to what comes in
> on the client "Host" header.
> 
> I too serve different templates based on incoming domain, and $r->hostname
> gets me the FQDN.  I'm on apache 1.3.X and mod_perl 1.29.
> 
> - Jeff
> 
> 
> ----- Original Message ----
> From: Alexander Burrows <[EMAIL PROTECTED]>
> To: modperl@perl.apache.org
> Sent: Wednesday, May 30, 2007 11:59:52 PM
> Subject: Re: Quick Question
> 
> 
> Ok maybe I was not explaining myself right. I want the equivalent to:
> 
> my $q = new CGI;
> my $uri = $q->uri(-full => 1);
> 
> This way I know what the requested domain is.
> 
> -Alexander
> 
> 
> Vegard Vesterheim wrote:
>> 
>> On Wed, 30 May 2007 22:02:11 -0700 (PDT) Alexander Burrows
>> <[EMAIL PROTECTED]> wrote:
>> 
>>> Ok I'm building a site that will have multiple domains pointing at it
>>> and
>>> will pull a different template based on the domain. The problem I'm
>>> having
>>> is I can't seem to remember for the life of me how to get $r->uri() to
>>> return the domain. I'm pushing my request objects to be Apache::Request
>>> objects. Any input would be great as Google seems to be getting worse
>>> and
>>> worse for finding this kind of information.
>> 
>> Try the methods 'hostinfo' or 'hostname' from APR::URI.
>> 
>>  - Vegard -
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Quick-Question-tf3844554.html#a10888457
> Sent from the mod_perl - General mailing list archive at Nabble.com.
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Quick-Question-tf3844554.html#a10888643
Sent from the mod_perl - General mailing list archive at Nabble.com.

Reply via email to