【发布时间】:2015-01-13 11:49:42
【问题描述】:
我想从 Jboss AS 7.1.1 final 的响应头中删除 Server Apache-Coyote/1.1 和 X-Powered-By JSP/2.2。我尝试了很多,但找不到任何东西。
我尝试的是
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
<configuration>
<static-resources listings="true"/>
<jsp-configuration development="true" x-powered-by="false" display-source-fragment="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"/>
<alias name="example.com"/>
</virtual-server>
</subsystem>
但这不起作用,仍然存在相同的响应标头。
请帮帮我。
【问题讨论】: