On Mon, 12 Jun 2000, Rob Tanner wrote:

> I don't have my eagle book in front of me (two work places, onbe book) -- 
> in chapter 9, I think it's a mod_perl specific method (might be a server 
> method though, can't remember) -- and I don't remember the name of the 
> function either -- but basically it returns a list of all configured 
> virtual hosts.
> 
> If no one else responds with a chapter and verse quote, skim through 
> chapter nine -- it's a full fledged reference manual -- and you should find 
> it.

It's server->next():

for (my $s = Apache->server; $s; $s = $s->next()) {
        print "Virtual host: ", $s->server_hostname, "\n";
}

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org

Reply via email to