問題
- Apache Coyote、Tomcat など、使用されているテクノロジーの名前が表示されます。
Environment
- ライフレイ DXP DXP 7.3
解決策
-
各アプリケーションは、その情報を表示できるようにする責任がありますが、Liferay は許可しません。 Liferay に関連する Verbose を確実に制限することができ、それらは以下のプロパティを通じて管理できます:
# Set the level of verbosity to use in the server information line printed # by the web server servlet. Valid values are "full", which gives all of the
# version information (e.g. Liferay Portal Community Edition 6.1.0 CE etc.)
# or "partial", which gives only the name portion (e.g. Liferay Portal
# Community Edition).
#
# Env: LIFERAY_WEB_PERIOD_SERVER_PERIOD_SERVLET_PERIOD_VERSION_PERIOD_VERBOSITY
#
web.server.servlet.version.verbosity=full# Set the level of verbosity to use for the Liferay-Portal field in the HTTP
これらは Liferay でのみ管理できます。 ただし、まだ懸念がある場合は、それぞれのベンダーにお問い合わせください。
# header response. Valid values are "full", which gives all of the version
# information (e.g. Liferay Portal Community Edition 6.1.0 CE etc.),
# "partial", which gives only the name portion (e.g. Liferay Portal
# Community Edition), or "off" which prevents the Portal from adding the
# Liferay-Portal field in the HTTP header response.
#
# Env: LIFERAY_HTTP_PERIOD_HEADER_PERIOD_VERSION_PERIOD_VERBOSITY
#
http.header.version.verbosity=full
注意: 上記のプロパティを追加した後、サーバーの再起動が必要です。
会員限定記事
Liferay エンタープライズ サブスクリプションをお持ちのお客様は1500件を超えるベストプラクティス、トラブルシューティング、その他のソリューション記事を閲覧できます。ログインすると、記事全体をお読みいただけます。
ログイン