> 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 this regard.

Yeah, I checked out AppConfig, and I actually emailed the author about
modifying it a little so I could use it as a base class possibly for
Apache::Config. Unfortunately, I haven't heard anything back yet.
AppConfig would be a great base class, the only problem is that:

# it handles comments like this

     # but not like this

that's the only sticking point to not being able to extend AppConfig.
Hopefully I'll hear something back from him. The fix is just the
addition of a \s* to a regexp.

> Apache::Config will be sufficient, IMHO, as later someone might
> write another module, say Apache::Config::Deploy, that syncronize
> the configuration of some httpds across some networks.

Not bad - I like the idea for an extension.

I'll keep plugging away on it then, hopefully the author of AppConfig
will get back to me as that would help save some work, but regardless
the parsing of the httpd.conf is not really that hard in and of itself.
I'll use the name Apache::Config unless I hear otherwise.

Thanks again to everyone who responded for their input!

-Nate

Reply via email to