Re: [RFC] Error directive to generate custom error messages from httpd.conf

2010-11-08 Thread Rainer Jung
On 08.11.2010 01:35, Jeff Trawick wrote: With the Error directive: IfModule !mod_include.c Error mod_foo requires mod_include! Use the LoadModule directive to load mod_include. /IfModule $ ./httpd -t Syntax error on line 486 of /home/trawick/inst/23/conf/httpd.conf: mod_foo requires

Re: [RFC] Error directive to generate custom error messages from httpd.conf

2010-11-08 Thread Rich Bowen
On Nov 7, 2010, at 7:35 PM, Jeff Trawick wrote: IfModule !mod_include.c Error mod_foo requires mod_include! Use the LoadModule directive to load mod_include. /IfModule $ ./httpd -t Syntax error on line 486 of /home/trawick/inst/23/conf/httpd.conf: mod_foo requires mod_include! Use the

[RFC] Error directive to generate custom error messages from httpd.conf

2010-11-07 Thread Jeff Trawick
This is handy when a module depends on another module at load time or run time, and the config for that module needs to display a message more helpful than the normal symbol-not-found or optional-function-not-found or invalid-filter message. The current kludge for generating an error message is

Re: [RFC] Error directive to generate custom error messages from httpd.conf

2010-11-07 Thread Dan Poirier
Cute. Always nice to have better error reporting.

Re: [RFC] Error directive to generate custom error messages from httpd.conf

2010-11-07 Thread Graham Leggett
On 08 Nov 2010, at 2:35 AM, Jeff Trawick wrote: With the Error directive: IfModule !mod_include.c Error mod_foo requires mod_include! Use the LoadModule directive to load mod_include. /IfModule $ ./httpd -t Syntax error on line 486 of /home/trawick/inst/23/conf/httpd.conf: mod_foo requires

Re: [RFC] Error directive to generate custom error messages from httpd.conf

2010-11-07 Thread Jeff Trawick
On Sun, Nov 7, 2010 at 8:13 PM, Graham Leggett minf...@sharp.fm wrote: On 08 Nov 2010, at 2:35 AM, Jeff Trawick wrote: With the Error directive: IfModule !mod_include.c Error mod_foo requires mod_include!  Use the LoadModule directive to load mod_include. /IfModule $ ./httpd -t Syntax

Re: [RFC] Error directive to generate custom error messages from httpd.conf

2010-11-07 Thread Sander Temme
On Nov 7, 2010, at 4:35 PM, Jeff Trawick wrote: This is handy when a module depends on another module at load time or run time, and the config for that module needs to display a message more helpful than the normal symbol-not-found or optional-function-not-found or invalid-filter message.

Re: [RFC] Error directive to generate custom error messages from httpd.conf

2010-11-07 Thread Dan Poirier
On Sun. 2010-11-07 at 08:29 PM EST, Sander Temme scte...@apache.org wrote: Pardon my rust, but what actually makes the process error out? Returning !nil? Right, config handlers either return NULL or an error message, and that fails startup.

Re: [RFC] Error directive to generate custom error messages from httpd.conf

2010-11-07 Thread Jeff Trawick
On Sun, Nov 7, 2010 at 8:29 PM, Sander Temme scte...@apache.org wrote: On Nov 7, 2010, at 4:35 PM, Jeff Trawick wrote: This is handy when a module depends on another module at load time or run time, and the config for that module needs to display a message more helpful than the normal

Re: [RFC] Error directive to generate custom error messages from httpd.conf

2010-11-07 Thread Sander Temme
On Nov 7, 2010, at 5:35 PM, Jeff Trawick wrote: +1. We also discussed last week the possibility that a module provides functionality not captured in the config file, and server startup should fail if that module is not loaded. The example I remember discussing was some module (or even