Category Archives: EAP6

Change SERVER header in EAP6

I found no way to remove the Server header in EAP6. But there is a way to change its content. Just add the folling config to your standalone.xml:

  <property name="org.apache.coyote.http11.Http11Protocol.SERVER" value="foo"/>

Or with cli:


Then your header just is Server: foo instead.

Remove X_POWERED_BY Header in JBoss EAP6

First you have to disable it in standalone.xml by adding jsp-configuration x-powered-by=”false”. Here the relevant part of my config:

<subsystem xmlns="urn:jboss:domain:web:1.5" default-virtual-server="default-host" native="false">
  <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
  <virtual-server name="default-host" enable-welcome-root="false">
    <alias name="localhost"/>
    <jsp-configuration x-powered-by="false"/>

Or with cli:


In a JSF application you have to add the following context param:


Then start your server and the header should be gone.