-
1. Re: JBoss AS 7: How to modify the server banner
b_prajesh Jun 8, 2012 4:39 PM (in response to b_prajesh)Not sure where the filter configuration part went. Here it is again.
<filter>
<filter-name>CommonHeadersFilter</filter-name>
<filter-class>
org.jboss.web.tomcat.filters.ReplyHeaderFilter</filter-class>
<init-param>
<param-name>X-Powered-By</param-name>
<param-value>MyWeb</param-value>
</init-param>
<init-param>
<param-name>Connection</param-name>
<param-value>keep-alive</param-value>
</init-param>
<init-param>
<param-name>Server</param-name>
<param-value>MyServer</param-value>
</init-param>
<init-param>
<param-name>Cache-Control</param-name>
<param-value>max-age=3600</param-value>
</init-param>
</filter>
-
2. Re: JBoss AS 7: How to modify the server banner
jfclere Jul 6, 2012 8:32 AM (in response to b_prajesh)X-Powered-By is controled via the x-powered-by (true/false) of the jsp-configuration.
-
3. Re: JBoss AS 7: How to modify the server banner
b_prajesh Jun 11, 2012 10:09 AM (in response to jfclere)Thanks! I added the configuration lines inside the web module of my standalone.xml, that is, I added them under
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false"> <configuration> <jsp-configuration display-source-fragment="false" x-powered-by="false"></jsp-configuration> </configuration> The x-powered-by still shows up as JSP/2.2 - any idea?
-
4. Re: JBoss AS 7: How to modify the server banner
loic.villanne Jun 25, 2012 11:57 AM (in response to b_prajesh)I have the same problem, with this configuration :
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
<configuration>
<jsp-configuration x-powered-by="false"/>
</configuration>
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
<virtual-server name="default-host" enable-welcome-root="false">
<alias name="localhost"/>
</virtual-server>
</subsystem>
And I see that :
X-Powered-By: JSP/2.2
Server: Apache-Coyote/1.1
Why the X-Powered-By isn't hidden ?
-
5. Re: JBoss AS 7: How to modify the server banner
jfclere Jun 26, 2012 3:40 AM (in response to loic.villanne)the "X-Powered-By" is added by the jsp compilation. You need to touch the .jsp file to get them recompiled to the flag action.
-
6. Re: JBoss AS 7: How to modify the server banner
jfclere Jul 6, 2012 8:34 AM (in response to jfclere)for the Server: header see http://docs.jboss.org/jbossweb/7.0.x/sysprops.html
org.apache.coyote.http11.Http11Protocol.SERVER