How to suppress or change "Server" header and "X-Powered-By" response header returned by JBoss EAP 7.x
Issue
-
How do I suppress or change
Server
header andX-Powered-By
response header returned by JBoss EAP 7.x? The following HTTP headersServer
andX-Powered-By
returned by EAP 7 and reveal detailed information about the software:HTTP/1.1 200 OK X-Powered-By: Undertow/1 Server: JBoss-EAP/7
and the following will be returned when you access JSP page:
HTTP/1.1 200 OK X-Powered-By: Undertow/1 X-Powered-By: JSP/2.3 Server: JBoss-EAP/7
-
How can we remove or change the
Server
andX-Powered-By
headers? - I specified the system property
org.apache.coyote.http11.Http11Protocol.SERVER
to modifyServer
response header in EAP 6. What is the equivalent configuration in EAP 7?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.