I am looking for hints on how to achieve the following from
within an Apache module:
When the module's "check access" function decides that access should not
be permitted, it should send back a HTTP_SERVICE_UNAVAILABLE error code
to the client, and also print customized text for the message. This
should be done without sending back a redirect, so that the client's
browser shows the original URL, not a new redirected URL.
Sending HTTP_SERVICE_UNAVAILABLE is easy, but how do we send back
customized text? I know that you can specify an ErrorDocument in the
server config or a .htaccess file, but is there any way of doing this
from within a module?
Also, where could I have obtained the above information, other than by
examining the Apache source code?
--