First up, I just want to make it clear that what I DON'T need to do is display a custom error page in Apache. This is easy and already working.
What I can't find out how to do is to customise the error response headers.
For example, I telnet to the machine running Apache on an appropriate port, e.g. telnet xx.xx.xx.xx 8080
then send a HEAD request by typing in HEAD and pressing enter.
What I get back from this is the following:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<title>501 Method Not Implemented</title>
<h1>Method Not Implemented</h1>
<p>head to /ndex.html not supported.<br />
<address>Apache/2.0.59 (Win32) Server at xx.xx.xx.xx Port 8080</address>
Connection to host lost.
The response in itself is ok. BUT, I need to be able to remove/hide/change the IP address and port number from the <address> tag in this response.
I can't find any information on how or where to do this, and would greatly appreciate any help.