How to Hide the HTTP Headers "X-Powered-By:" and "Server:" Sent by Glassfish (Doc ID 1495492.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle GlassFish Server - Version 2.1 and later
Information in this document applies to any platform.

Goal

The Goal is to hide the "X-Powered-By" and "Server" headers from Glassfish HTTP headers.
For security reasons, it may be a good idea to not tell the world which server you are using.
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms