Liferayのドキュメントルートを変更する方法(プロキシパスの設定)

事象/ユースケース

Liferay運用の際にプロキシを経由して、https://example.com/ ではなく https://example.com/liferay/ のようなパスで運用する必要があります。

解決策/提案

portal.proxy.pathでプロキシパスを指定します。

https://example.com/liferay/で運用する場合、_[liferay_home]/portal-ext.properties_に以下の設定を加えます。

#
# Set this property if the application server is served behind a proxy and
# a prefix needs to be added to the portal servlet context path. This prefix
# will also be added to static resources served by layout templates,
# portlets, and themes.
#
# Env: LIFERAY_PORTAL_PERIOD_PROXY_PERIOD_PATH
#
portal.proxy.path=/liferay

Liferay側のプロキシパスに関する設定は以上です。

Webサーバーやプロキシサーバー側の設定は、利用される製品の説明に従い適宜ご調整ください。

追加情報

この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています