You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by iain truskett <ic...@koschei.8m.com> on 2001/03/07 11:11:30 UTC
Delving into Apache's configuration innards
Hello,
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.
cheers,
--
iain. <http://eh.org/~koschei/>
51 things to do in a lift....
18. When at least 8 people have boarded, moan from the back: "Oh, not
now, damn motion sickness!"
Re: Delving into Apache's configuration innards
Posted by iain truskett <ic...@koschei.8m.com>.
* Stas Bekman (stas@stason.org) [08 Mar 2001 02:36]:
> On Thu, 8 Mar 2001, iain truskett wrote:
[...]
> > > 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.
I was going to once I figured out exactly what it was doing. Weekend job
that.
> > (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.
"according to the documentation you pointed out"...
[...]
> 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.
Sounds like a plan. I'll see what I can get done with mod_info.
cheers,
--
iain. <http://eh.org/~koschei/>
"I'd just like to take this opportunity to say: Iain Truskett, you
are a crafty git!" -- Erik Pollitt, The Jade Pagoda, 20000208.
Re: Delving into Apache's configuration innards
Posted by Stas Bekman <st...@stason.org>.
On Thu, 8 Mar 2001, iain truskett wrote:
> * Stas Bekman (stas@stason.org) [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:stas@stason.org http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: Delving into Apache's configuration innards
Posted by iain truskett <ic...@eh.org>.
* Stas Bekman (stas@stason.org) [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 (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.
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.
Thanks anyway.
cheers,
--
#!/usr/bin/perl -- # -- iain. <http://eh.org/~koschei/>
($#=q/M2VYO=VQE9,=E($%B;W9E($%L;"X*.,AT='`Z+R]E:"YO<F<O?FMO<V-H96DO'<')I
>F4^"|``/)=~y-,.|\r\n\t -&/@-d,$;=pack c,280551%015025;print unpack$;,$#
Re: Delving into Apache's configuration innards
Posted by Stas Bekman <st...@stason.org>.
On Wed, 7 Mar 2001, iain truskett wrote:
> Hello,
>
> 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
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/