On Thu, 8 Mar 2001, iain truskett wrote:

> * Stas Bekman ([EMAIL PROTECTED]) [08 Mar 2001 01:48]:
> > On Wed, 7 Mar 2001, iain truskett wrote:
> [...]
> > > I'd like to be able to display all of my web server's configuration
> > > on a web page. Since a fair amount of it is automatically generated
> > > I was wondering if there was a way to easily obtain a dump (of hash
> > > and array references) to munge and display on the page.
>
> > http://perl.apache.org/guide/config.html#Verifying
>
> Except that (a) adding $Apache::Server::SaveConfig = 1; to my <perl>
> bit has the side effect of stopping the virtualhost hash being filled
> out properly, and

You may want to submit a bug report providing all the details. Just sayind
"improperly filled out" doesn't tell much.

> (b) according to the documentation you pointed out (which
> I had checked previously) it doesn't give me access to the entirety of
> the configuration, only what I set in the <perl> sections.

The documentation mentions this fact, I believe.

> Mind you, I could go and translate the rest of the configuration into a
> <perl> section so that the whole thing is a perl program but I'd rather
> not unless I have to.

Use mod_info: http://httpd.apache.org/docs/mod/mod_info.html
But it's not aware of the C<Perl> sections. I suppose that Apache::Status
can be improved to merge the info from mod_info and the C<Perl> sections,
so if anybody wants to do that you are very welcome.

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


Reply via email to