How to suppress or change "Server" header and "X-Powered-By" response header returned by JBoss EAP 7.x

Solution Verified - Updated -

Issue

  • How do I suppress or change Server header and X-Powered-By response header returned by JBoss EAP 7.x? The following HTTP headers Server and X-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 and X-Powered-By headers?

  • I specified the system property org.apache.coyote.http11.Http11Protocol.SERVER to modify Server 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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.