Re: How to get virtualhost info in mod_perl?

2006-10-26 Thread Kjetil Kjernsmo
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

Re: method handlers

2006-10-26 Thread Jordan McLain
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

method handlers

2006-10-26 Thread Jordan McLain
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 = ...

Re: Re: When is perl.apache.org going to be back online?

2006-10-26 Thread Jordan McLain
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

Re: How to get virtualhost info in mod_perl?

2006-10-26 Thread Philippe M. Chiasson
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() -

Re: How to get virtualhost info in mod_perl?

2006-10-26 Thread Philippe M. Chiasson
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->

RE: How to get virtualhost info in mod_perl?

2006-10-26 Thread Terry, Jason
$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

RE: How to get virtualhost info in mod_perl?

2006-10-26 Thread Adam Prime x443
$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

How to get virtualhost info in mod_perl?

2006-10-26 Thread LUKE
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?