-
1. Re: Unable to hide 'x-powered-by' header
jaysensharma Aug 15, 2012 8:50 AM (in response to benashmead)Hi,
Which version of JBoss AS7 are you using?
I tested the same on Jboss As7.1.2 and it worked fine
<configuration>
<jsp-configuration display-source-fragment="false" x-powered-by="false"/>
</configuration>
Also if you want to even prevent displaying the actual server name as "Server:Apache" then run your JBoss with the following System property:
-Dorg.apache.coyote.http11.Http11Protocol.SERVER="XYZServer"
-
2. Re: Unable to hide 'x-powered-by' header
benashmead Aug 15, 2012 9:28 AM (in response to jaysensharma)Hi,
Ah, we're on 7.1.1.Final, I wonder if this is something that's been fixed recently. I'll have a poke through the AS7 bug tracker and see what's changed - good to know my configuration is ok though, thanks!
-
3. Re: Unable to hide 'x-powered-by' header
parikh.urvish May 31, 2014 7:14 PM (in response to benashmead)Is there any news we are also facing same issue on JBoss AS 7.1.1?
Thx!
-
4. Re: Unable to hide 'x-powered-by' header
ctomc Jun 1, 2014 11:33 AM (in response to parikh.urvish)There is a known issue in 7.1.1 that jsp-configuration element is not properly processed by the server and as such none of the settings configured are applied.
It was fixed few days after the 7.1.1, just compile yourself 7.1.2 or 7.1.3 and you will be fine, or even better upgrade to WildFly 8
-
5. Re: Unable to hide 'x-powered-by' header
parikh.urvish Jun 18, 2014 11:38 AM (in response to ctomc)Hi Tomaz,
Thx for the reply, in fact we use custom jsf implementation that's why above mention property is not able to remove even on Jboss 7.1.2.
We use Mojarra jsf implementation so it required following context parameter in web.xml to remove X-Powered-By:JSF/1.2.
<context-param>
<param-name>com.sun.faces.sendPoweredByHeader</param-name>
<param-value>false</param-value>
</context-param>
Urvish