The http://rd-program.blogspot.com
and http://se-program.blogspot.com
have the same ip address (72.14.207.191).How can i know
the browser connect
to apache server(in mod_perl) via which
hostname?
006 11:16 AM
To: modperl@perl.apache.org
Subject: How to get virtualhost info in mod_perl?
The http://rd-program.blogspot.com and http://se-program.blogspot.com
have the same ip address (72.14.207.191).How can i know the browser
connect
to apache server(in mod_perl) via which hostname?
$ENV{‘SERVER_NAME’}
From: LUKE
[mailto:[EMAIL PROTECTED]
Sent: Thursday, October 26, 2006
9:16 AM
To: modperl@perl.apache.org
Subject: How to get virtualhost
info in mod_perl?
The
http://rd-program.blogspot.com and http://se-program.blogspot.com
have
the same
; header
$r->headers_in->{Host}
> -Original Message-
> From: LUKE [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 26, 2006 11:16 AM
> To: modperl@perl.apache.org
> Subject: How to get virtualhost info in mod_perl?
>
> The http://rd-program.blogspot.com and
Terry, Jason wrote:
> $ENV{‘SERVER_NAME’}
That wold also work.
But in general, I wouldn't recommend using %ENV from within mod_perl, especially
when the information you are looking for is readily available thru some API
like $r->server->server_hostname()
-
On Thursday 26 October 2006 21:07, Philippe M. Chiasson wrote:
> Terry, Jason wrote:
> > $ENV{‘SERVER_NAME’}
>
> That wold also work.
>
> But in general, I wouldn't recommend using %ENV from within mod_perl,
Can I ask why not? I was of the same opinion, mainly because %ENV is
populated for every
this one time in band camp Kjetil Kjernsmo said on 10/26/06 23:59:
On Thursday 26 October 2006 21:07, Philippe M. Chiasson wrote:
Terry, Jason wrote:
$ENV{‘SERVER_NAME’}
That wold also work.
But in general, I wouldn't recommend using %ENV from within mod_perl,
Can I ask why not? I was of th
On 26-Oct-06, at 11:59 PM, Kjetil Kjernsmo wrote:
On Thursday 26 October 2006 21:07, Philippe M. Chiasson wrote:
Terry, Jason wrote:
$ENV{‘SERVER_NAME’}
That wold also work.
But in general, I wouldn't recommend using %ENV from within mod_perl,
Can I ask why not? I was of the same opinion