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

設定したFriendly URLでLiferayサーバーにアクセスできないのですが?

written-by

Nathan Roberts

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

問題

  • Friendly URL を設定することで、ユーザーが特定のサイトにアクセスする際に表示されるURLを変更することができます。 しかし、 Home URL が更新されていない場合、バンドルにアクセスしようとすると、「Not Found」ページが返されます。

環境

  • Liferay DXP 7.0
  • Liferay DXP 7.1

解像度

  • Friendly URL を設定する場合は、 Home URL (「設定」-「> インスタンス設定」で確認できます)を一致するURL拡張子に設定する必要があります。
    • 例:
      • サイトの フレンドリーURL/testray に設定し、 ホームURL/web/testrayに設定しました。 localhost:8080 のバンドルにアクセスすると、 http://localhost:8080/web/testray と Welcome ページが表示されます。
  • また、 バーチャルホスト が設定されている場合にも動作します。
    • 例)上記の フレンドリーURLホームURL を使用した場合:
      • デフォルトのLiferayサイトのバーチャルホスト testray.comに設定しました。 testray.com:8080 のバンドルにアクセスすると、 http://testray.com:8080/ と Welcome ページにたどり着きます。

追加情報

  • これについては、弊社のドキュメント こちらで説明しています。
did-this-article-resolve-your-issue

legacy-knowledge-base