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->{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 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? -------------------------------------------------------------------------------- Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5 http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5
signature.asc
Description: OpenPGP digital signature