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
Serverheader andX-Powered-Byresponse header returned by JBoss EAP 7.x? The following HTTP headersServerandX-Powered-Byreturned by EAP 7 and reveal detailed information about the software:HTTP/1.1 200 OK X-Powered-By: Undertow/1 Server: JBoss-EAP/7and 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
ServerandX-Powered-Byheaders? - I specified the system property
org.apache.coyote.http11.Http11Protocol.SERVERto modifyServerresponse 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
