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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content