Skip to main content

[webtier] Re: Disabling the "Server" header

1 reply [Last post]
Anonymous

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Jan Luehe

On 12/10/08 09:06, glassfish@javadesktop.org wrote:
> I'm trying to remove the "Server" header so that the value "Server: Sun Java System Application Server 9.1_02" can be removed from every response.
>
> Where is this done? X-Powered-By is found in the http listener section but I can't seem to find the server header anywhere. Searching for glassfish http server header doesn't provide anything useful.
>

I don't think you can fully disable the "Server" header, but you can get
suppress its
default value "Sun Java System Application Server 9.1_02" by declaring a
system
property with name "product.name" and setting its value to the empty
string ("").

Jan

> [Message sent by forum member 'pjulien' (pjulien)]
>
> http://forums.java.net/jive/thread.jspa?messageID=321064
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net