2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WildFlyでレスポンスヘッダからx-powered-byとserverを除去する

Posted at

概要

セキュリティの観点から実運用時には、x-powered-byヘッダとserverヘッダを除去しておきたい。

環境

  • WildFly 8.0.0.Final

内容

  • standalone/configuration/standalone.xml を編集するだけ。
standalone.xml
<host name="default-host" alias="localhost">
  <location name="/" handler="welcome-content"/>
<!--
  <filter-ref name="server-header"/>
  <filter-ref name="x-powered-by-header"/>
-->
</host>
...
<!--
<filters>
  <response-header name="server-header" header-name="Server" header-value="Wildfly 8"/>
  <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow 1"/>
</filters>
-->
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?