Since this is up for discussion anyway, what if there was an option to set a directive as ignore-able.
For example, PHP allows you to preface a function with `@` to ignore errors (http://www.php.net/manual/en/language.operators.errorcontrol.php). That way, if you restart and the error is "Invalid command 'Xyzzy',", you could make the decision to ignore it. I am not sure how useful this would be in practice. The only thing that comes to mind is with a module like mod_auth_mysql where you could ignore errors about it being missing while still requiring some other type of authentication with satisfy any. - Y On Mon, Apr 14, 2014 at 12:00 PM, Jim Riggs <[email protected]> wrote: > On 14 Apr 2014, at 10:38, Eric Covener <[email protected]> wrote: > > > On Mon, Apr 14, 2014 at 11:15 AM, Mike Rumph <[email protected]> > wrote: > >> If there is an unknown directive in the config file, simply ignore it > with a > >> warning. > > > > You can't do that. What if it was "Reqiure"? > > I agree with Eric. I would not want unknown directives to be ignored. It > might be a typo of a really important directive like Eric describes. Or, > what if a module I really, really need is accidentally disabled and we just > ignore all of its directives? Not good. > > In this particular case, duplicating a Listen directive doesn't seem like > it should bomb out the server. > > Listen 80 > ... > Listen 80 > > It's superfluous, but not really a critical error. So, my patch just > ignores subsequent duplicate Listens. > >
