Re: mod_perl: Configuration info at run-time

2000-06-13 Thread Richard L. Goerwitz
Matt Sergeant wrote: > > > for ($s = Apache->server; $s; $s = $s->next) { > > > my ($server, $port) = ($s->server_hostname, $s->port); > > > $r->print('server: ', $server, "\n"); > > > $r->print('port: ', $port, "\n"); > > > > > > my $subreq = $r->lookup_uri("http:

Re: mod_perl: Configuration info at run-time

2000-06-13 Thread Matt Sergeant
On Tue, 13 Jun 2000, Richard L. Goerwitz wrote: > Matt Sergeant wrote: > > > OK then, try this: > > > > for ($s = Apache->server; $s; $s = $s->next) { > > my ($server, $port) = ($s->server_hostname, $s->port); > > $r->print('server: ', $server, "\n"); > > $r->print('port

Re: mod_perl: Configuration info at run-time

2000-06-13 Thread Richard L. Goerwitz
Matt Sergeant wrote: > OK then, try this: > > for ($s = Apache->server; $s; $s = $s->next) { > my ($server, $port) = ($s->server_hostname, $s->port); > $r->print('server: ', $server, "\n"); > $r->print('port: ', $port, "\n"); > > my $subreq = $r->lookup_uri("http

Re: mod_perl: Configuration info at run-time

2000-06-13 Thread Matt Sergeant
On Tue, 13 Jun 2000, Richard L. Goerwitz wrote: > To get a list of virtual servers - > > > > > for (my $s = Apache->server; $s; $s = $s->next()) { > > > > print "Virtual host: ", $s->server_hostname, "\n"; > > > > } > > > > Is there any reasonable way to use the list of servers (success

Re: mod_perl: Configuration info at run-time

2000-06-13 Thread Richard L. Goerwitz
To get a list of virtual servers - > > > for (my $s = Apache->server; $s; $s = $s->next()) { > > > print "Virtual host: ", $s->server_hostname, "\n"; > > > } > > Is there any reasonable way to use the list of servers (successive > > values of $s above) to determine what mod_perl PerlSetV

Re: mod_perl: Configuration info at run-time

2000-06-13 Thread Matt Sergeant
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"; > >

Re: mod_perl: Configuration info at run-time

2000-06-12 Thread Richard L. Goerwitz
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 lis

Re: mod_perl: Configuration info at run-time

2000-06-12 Thread Matt Sergeant
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 basica

Re: mod_perl: Configuration info at run-time

2000-06-12 Thread Rob Tanner
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

Re: mod_perl: Configuration info at run-time

2000-06-12 Thread J. J. Horner
On Mon, 12 Jun 2000, Richard L. Goerwitz wrote: > It's not obvious to me how one might get a list of VirtualHosts that are > configured for the current server instance (at run-time, e.g., from in- > side a Perl module). > > Is there some canonical way to do this? > I would guess that you could

mod_perl: Configuration info at run-time

2000-06-12 Thread Richard L. Goerwitz
It's not obvious to me how one might get a list of VirtualHosts that are configured for the current server instance (at run-time, e.g., from in- side a Perl module). Is there some canonical way to do this? -- Richard Goerwitz[EMAIL PROTECTED]