How to suppress the Server: HTTP header
Usually, Jetty will send the HTTP
Server header on replies. It looks something like this:
HTTP/1.x 200 OK Content-Type: text/html Content-Length: 2155 Last-Modified: Thu, 06 Jul 2006 08:25:50 GMT Connection: keep-alive Server: Jetty(6.0.x) <--------- the server header
You can supress the sending of this header by uncommenting the following line in the
etc/jetty.xml file from the distribution:
You might want to do this to heighten the security of your site by hiding details of the software you are using. Of course, this will do nothing good for Jetty's Netcraft rating .