This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig865E75BD98F751D97908C3FD
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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 cli=
ent
(i.e http://www.example.com vs http://example.com), look at the 'Host:' h=
eader

$r->headers_in->{Host}

> -----Original Message-----
> From: LUKE [mailto:luke@tc.program.com.tw]=20
> Sent: Thursday, October 26, 2006 11:16 AM
> To: modperl@perl.apache.org
> Subject: How to get virtualhost info in mod_perl?
>=20
> The http://rd-program.blogspot.com and http://se-program.blogspot.com =

=20
> have the same ip address (72.14.207.191).How can i know the browser
> connect=20
> to apache server(in mod_perl) via which hostname?


-------------------------------------------------------------------------=
-------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 8=
8C3A5A5
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 8=
8C3A5A5


--------------enig865E75BD98F751D97908C3FD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFFQQbuyzKhB4jDpaURA+OlAKCfUnXrNU5HcMmgwklRpz l5B0RLCACfTUJn
2mViNBpTFrawmYqxxsFvIcI=
=eqRm
-----END PGP SIGNATURE-----

--------------enig865E75BD98F751D97908C3FD--