I'm using Apache as a Proxy to our internal Glassfish server and want to hide as much information about the software we're using as I can.
In Apache I configured a very simple 404 ErrorDocument on the server level:
ErrorDocument 404 "Page not found"
This works, but it doesn't seem to work for 405 (method not allowed):
ErrorDocument 405 "Method not allowed"
When I open an URL in my browser for a servlet which only talks POST, not GET, I get Glassfish' 405 page instead of my custom message. I've tried hiding the information on the Glassfish side and on the Apache side, but it doesn't seem to work.
Any thoughts?