perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M. Chiasson" <go...@ectoplasm.org>
Subject Re: How to get virtualhost info in mod_perl?
Date Thu, 26 Oct 2006 19:07:00 GMT
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()

--------------------------------------------------------------------------------
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


Mime
View raw message