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
just noticed... in the actual code 'handler' is prototyped with ($$)
On 10/26/06, Jordan McLain <[EMAIL PROTECTED]> wrote:
Hello,
This is more of a style and usage question. Sorry for the stupid question.
I am rewriting one of my apps to be more OO so that I can abstract
its' functionality o
Hello,
This is more of a style and usage question. Sorry for the stupid question.
I am rewriting one of my apps to be more OO so that I can abstract
its' functionality out to another handler potentially. I end up doing
something like this...
sub handler {
my ($class, $r) = @_;
my $self = ...
Good job getting perl.apache.org back up. No big deal, just wanted to
end the thread on a positive note.
Jordan Mclain
eCarList.com
On 10/25/06, Philip M. Gollucci <[EMAIL PROTECTED]> wrote:
this one time in band camp Adam Prime x443 said on 10/25/06 12:17:
> Every project site on apache.org e
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()
-
Adam Prime x443 wrote:
> $r->server->server_hostname()?
That gets you the canonical server name (i.e. what's in ServerName)
If you are interested in knowing what hostname was requested from the client
(i.e http://www.example.com vs http://example.com), look at the 'Host:' header
$r->headers_in->
$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 ip
$r->server->server_hostname()?
mp2:
http://perl.apache.org/docs/2.0/api/Apache2/ServerRec.html#C_server_host
name_
mp1:
http://perl.apache.org/docs/1.0/api/Apache.html#_s_E_gt_server_hostname
-Original Message-
From: LUKE [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 26, 2006 11:1
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?