legacy-knowledge-base
公開されました Jul. 2, 2025

検索エンジンのロボットが原因のバーチャルホストエラー

written-by

Liferay Support

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

この記事はレガシー記事です。 以前のバージョンのLiferay製品にも適用されます。 記事がメンテナンスされなくなったとはいえ、まだ該当する可能性があります。

通常の使用中に以下のようなエラーが発生しました。 com.liferay.portal.NoSuchVirtualHostException.キー{hostname=}を持つVirtualHostが存在しません。

決議

この問題は、サーバが公開されていることが原因です。 このエラーは、検索エンジンがサイトをインデックスしようとする際に、サーバー名がサイトのバーチャルホスト(私たちの場合は存在しない)であると仮定して発生します。

解決するには、ネットワーク設定で、問題のサーバーが希望の場所からのみアクセス可能であることを確認してください。 ありそうなインスタンスは、Apacheや他のWebサーバやロードバランサーだけがアクセスできるように設定することでしょう。 これで、検索エンジンからのアクセスを防ぐことができるようになったので、この問題は解消されるでしょう。

did-this-article-resolve-your-issue

legacy-knowledge-base