troubleshooting Question

How can I customise default Apache error response headers?

Avatar of jellybellyjo
jellybellyjo asked on
Apache Web Server
8 Comments1 Solution515 ViewsLast Modified:
Hi all.

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:


                                                              <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.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros