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?  

RE: How to get virtualhost info in mod_perl?

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

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

Re: How to get virtualhost info in mod_perl?

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

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 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: How to get virtualhost info in mod_perl?

2006-10-27 Thread Philip M. Gollucci
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

Re: How to get virtualhost info in mod_perl?

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