httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject restore ErrorDocument to default serer message
Date Tue, 06 Apr 2004 00:36:51 GMT
hi all

today in bugzilla Joshua brought up an interesting point about ErrorDocument
- once set on a global or per-server level you can't selectively restore the
error response back to the canned server document.

  http://issues.apache.org/bugzilla/show_bug.cgi?id=28173

while the current userland solution is well known and standard practice, the
logic to reset the ErrorDocument is back to the default is trivial:

  conf->response_code_strings[idx] = NULL;

over in mod_perl land we support this through the custom_response() API, but
it would be kind of cool to be able to support

  ErrorDocument 500 default

in core httpd, allowing users to effectively restore the canned server
response for the scope of the current ErrorDocument.

anyway, I'm just tossing the idea out there - if people like it I'll work up
a patch.  if not, no biggie.

--Geoff

Mime
View raw message