On Mon, 12 Jun 2000, Richard L. Goerwitz wrote:

> In response to my query about how to get a list of virtual
> servers, Matt Sergeant wrote:
> 
> > It's server->next():
> > 
> > for (my $s = Apache->server; $s; $s = $s->next()) {
> >         print "Virtual host: ", $s->server_hostname, "\n";
> > }
> 
> Here's a followup:
> 
> Is there any reasonable way to use the list of servers (successive
> values of $s above) to determine what mod_perl PerlSetVar directives
> have been issued for each virtual host?
> 
> E.g., is there some clever way to use Apache::ModuleConfig->get ()
> to do this?

$s->dir_config() should work.

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