Plankton has asked for the wisdom of the Perl Monks concerning the following question:
Hi Wise Monks,
I have an rather large and complicated httpd.conf file that uses mod_perl <Perl> tags to write a large part of it. I would like to be able to dump out the resulting config as if where normal looking httpd.conf file. I need to be able to reverse engineer and debug this large httpd.conf. I know I can do stuff like ...
... but that writes the config out as Perl code which is fine but I was hoping the the reverse. I also know that I can check the syntax of my httpd.conf by executingApache::PerlSections->store("httpd_config.pl");
but again I want to end up with output that is just httpd configuration directives without any Perl code left in it.$ perl -cx httpd.conf
Does any Monk know of any existing module that does something like this or is there some simple solution I am just not clever enough to see for myself?
Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Generating an httpd.conf from http://example.com/perl-status
by hsinclai (Deacon) on Mar 11, 2009 at 15:03 UTC | |
by Plankton (Vicar) on Mar 11, 2009 at 17:17 UTC | |
by hsinclai (Deacon) on Mar 11, 2009 at 22:53 UTC |