Legacy Knowledge Base
Published Jul. 2, 2025

Virtual hosts error caused by search engine robots

Written By

Liferay Support

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

This article is a legacy article. It applies to previous versions of the Liferay product. While the article is no longer maintained, the information may still be applicable.

During the course of normal usage, the following error was received: com.liferay.portal.NoSuchVirtualHostException: No VirtualHost exists with the key {hostname=}

Resolution

This issue is caused by the server being publicly reachable. The errors are caused by search engines trying to index the site, assuming that the server name is the virtual host of the site (which in our case doesn't exist).

To resolve, check through network settings to ensure that the server in question is only accessible from desired locations. A likely instance would be setting it so that only Apache or some other Web Server or load balancer could access it. This would resolve the issue as search engines would now be prevented from accessing the site.

Did this article resolve your issue ?

Legacy Knowledge Base