Legacy Knowledge Base
Published Jun. 30, 2025

Updated Portal Property Default Values for Virtual Hosts

Written By

Alex Chau

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM).

Issue

  • Virtual Host defaults were changed from a wildcard value to secure default values.

    Previous Value:
    virtual.hosts.valid.hosts=*
    Updated Value:
    virtual.hosts.valid.hosts=localhost,127.0.0.1,[::1],[0:0:0:0:0:0:0:1]

Environment

  • Liferay DXP 2023.Q3+
  • Liferay DXP 7.4 Update 86+
  • Liferay DXP 7.3 Update 34+
  • This affects all who use the wildcard value with the virtual.hosts.valid.hosts portal property or do not have the property set in their portal-ext.properties file.

Resolution

Liferay DXP

  • This is a breaking change documented here.
  • Please include the proper virtual hosts and addresses within the portal property in order to secure the environment:
    virtual.hosts.valid.hosts=

Liferay PaaS

  • Ensure that you have deployed Liferay DXP image version 5.3.0+
liferaycloud/liferay-dxp:7.4-5.3.0
liferaycloud/liferay-dxp:7.3-5.3.0

Additional Information

  • LPE-17758
  • On Liferay PaaS, the new default property will prevent the readiness probe from succeeding. As a consequence, the liferay service deployment is going to time out unless you set virtual.hosts.valid.hosts=* in portal-ext.properties.
Did this article resolve your issue ?

Legacy Knowledge Base