legacy-knowledge-base
公開されました Sep. 10, 2025

wwwとnon-wwwの両方が使えるように複数のバーチャルホストを設定する。

written-by

Aaron Wang

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 1つのサイトに複数のバーチャルホストを設定する場合(例えば、 www.aaa.comaaa.com の両方を設定する場合). 異なるホストの両方を使用して、バーチャルホストを設定することはできません。

Environment

  • Liferay DXP 7.2

解決策

  • "aaa.com "と "www.aaa.com "は、異なるドメインとみなされます。
  • DXP 7.2 Fix Pack 5以前では、ユーザーは1サイトにつき1つのバーチャルホストしか設定することができませんでした。 複数のバーチャルホストを許可するためのFeature Request、 LPS-44217, は、Fix Pack 5で実装されました。
  • DXP 7.2 Fix Pack 5+では、 Site Administration > Configuration > Site Settings に移動し、[+]アイコンをクリックして追加の仮想ホストを構成します。

multiple_virtual_hosts.png

did-this-article-resolve-your-issue

legacy-knowledge-base