Dashboard > Jetty > ... > Jetty Documentation > How to suppress the Server HTTP header
How to suppress the Server HTTP header Log In | Sign Up   View a printable version of the current page.

Added by Jan Bartel , last edited by Jan Bartel on Jul 06, 2006  (view change)
Labels: 
(None)

Contact the core Jetty developers at www.webtide.com
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

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:

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

Site running on a free Atlassian Confluence Open Source Project License granted to The Codehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.2 Build:#919 Nov 26, 2007) - Bug/feature request - Contact Administrators