fresh update/build with the threaded mpm.. there are no headers in the
response when a handler return an error:
% telnet localhost 8082
Trying 127.0.0.1...
Connected to mako.covalent.net.
Escape character is '^]'.
GET / http/1.0
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>403 Forbidden</TITLE>
</HEAD><BODY>
<H1>Forbidden</H1>
You don't have permission to access /
on this server.<P>
<HR>
<ADDRESS>Apache/2.0.19-dev Server at mako.covalent.net Port 80</ADDRESS>
</BODY></HTML>
Connection closed by foreign host.
produced with this lil module:
#include "httpd.h"
#include "http_config.h"
#include "http_protocol.h"
#include "http_request.h"
#include "ap_config.h"
static int err_access(request_rec *r)
{
return 403;
}
static void err_register_hooks(apr_pool_t *p)
{
ap_hook_access_checker(err_access, NULL, NULL, APR_HOOK_MIDDLE);
}
module AP_MODULE_DECLARE_DATA err_module = {
STANDARD20_MODULE_STUFF,
NULL, /* create per-dir config structures */
NULL, /* merge per-dir config structures */
NULL, /* create per-server config structures */
NULL, /* merge per-server config structures */
NULL, /* table of config file commands */
err_register_hooks /* register hooks */
};