On Tue, 27 Jun 2000, Nathan Wiger wrote:
Hi all-
I've written a module that can parse the Apache httpd.conf config file
(and in fact any Apache-like config file). It will take a set of
directive like:
ServerName www.mydomain.com
UseCanonicalName Off
And parse it
No wonder Nathan Wiger on Jun 29 said that,
NW] NW] In any case, I have several questions:
NW] NW]
NW] NW] 1. Does a module like this exist anywhere?
NW]
NW] You may want to take a look at AppConfig module. It does provide
NW] generic capability to parse various kinds of config
James-
You and are are saying the same thing, just with different terminology.
I agree completely. :-)
-Nate
James G Smith wrote:
Nathan Wiger [EMAIL PROTECTED] wrote:
UseCanonicalName On# = 1
UseCanonicalName Off # = 0
#UseCanonicalName On# = undef (commented out)
NW] In any case, I have several questions:
NW]
NW] 1. Does a module like this exist anywhere?
You may want to take a look at AppConfig module. It does provide
generic capability to parse various kinds of config file. But I'll
be a happy user to have more spesific Apache related in
Perhaps
3. multi-level hash, i.e.
$conf-{directory}-{'/'}-{sethandler}
This is, afaik, more in-line with what the Perl.../Perl sections do. I
would suggest making it so the output of this module could easily be fed into
the mod_perl configuration engine in the
Nathan Wiger [EMAIL PROTECTED] wrote:
UseCanonicalName On# = 1
UseCanonicalName Off # = 0
#UseCanonicalName On# = undef (commented out)
That way, the logic in your script/module/whatever can set a default
value:
if ( ! defined($conf-{usecanonicalname}) ) {
# not
No wonder Nathan Wiger on Jun 27 said that,
NW] Hi all-
NW]
NW] I've written a module that can parse the Apache httpd.conf config file
NW] (and in fact any Apache-like config file). It will take a set of
NW] directive like:
NW]
NW] ServerName www.mydomain.com
NW]
Hi all-
I've written a module that can parse the Apache httpd.conf config file
(and in fact any Apache-like config file). It will take a set of
directive like:
ServerName www.mydomain.com
UseCanonicalName Off
And parse it case-insensitively, returning a ref to a hash:
Nathan Wiger [EMAIL PROTECTED] wrote:
Hi all-
I've written a module that can parse the Apache httpd.conf config file
(and in fact any Apache-like config file). It will take a set of
directive like:
[snip]
I am also finishing up the ability to parse within contexts, such as
Directory and
James-
You might want to reconsider the usecanonicalname setting. The hash element
should exist if and only if it appears in the configuration file. It should
be defined if and only if it has an argument in the configuration file.
Thus, the following results:
UseCanonicalName
10 matches
Mail list logo