Sep 19, 2018

How to change or remove “Server” HTTP header on Glassfish

curl -kv https://localhost > /dev/null
HTTP/1.1 200 OK
Server: GlassFish Server Open Source Edition

It can be both modified or removed altogether. This involves adding a Java property which means that changes made will require a server restart. The magic property is called You could use the admin console to change this

/opt/glassfish3/bin/asadmin create-jvm-options" App server 3"
/opt/glassfish3/bin/asadmin restart-domain