Re: Apache::Config module

2000-08-15 Thread Doug MacEachern
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

Re: Apache::Config module

2000-06-30 Thread Hasanuddin Tamir
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

Re: Apache::Config module

2000-06-29 Thread Nathan Wiger
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)

Re: Apache::Config module

2000-06-29 Thread Nathan Wiger
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

Re: Apache::Config module

2000-06-28 Thread Piers Cawley
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

Re: Apache::Config module

2000-06-28 Thread James G Smith
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

Re: Apache::Config module

2000-06-28 Thread Hasanuddin Tamir
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]

Apache::Config module

2000-06-27 Thread Nathan Wiger
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:

Re: Apache::Config module

2000-06-27 Thread James G Smith
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

Re: Apache::Config module

2000-06-27 Thread Nathan Wiger
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