Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

How to suppress the Server: HTTP header

Usually, Jetty will send the HTTP Server header on replies. It looks something like this:

No Format
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:

Code Block
 <Set name="sendServerVersion">true</Set>

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 (smile).

Contact the core Jetty developers at
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery