Legacy Knowledge Base
Published Jun. 30, 2025

Configuring Multiple Domain Names Pointing to the Same Virtual Instances (Liferay PaaS)

Written By

Laura Li

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

  • We have several Virtual Instances. Each one of this virtual instances have their own name (custom domains).

    For one virtual instance named xyz.com, there is a custom domain in webserver with the same name. We have configured an A type record in the DNS which points to the ingress IP of the Liferay environment. When they access https://xyz.com, the site works fine.
    Now we have a requirement to redirect to the same site when accessing https://www.xyz.com. We configured a CNAME type record in DNS to point www.xyz.com to xyz.com. But the following error occurred:
    error.png

Environment

  • Liferay PaaS

Resolution

  1. Add www.xyz.com as a new custom domain in the webserver

  2. In the virtual instance xyz.com, go to Site > Configuration > Site Settings > Site URL and update the Public Pages Virtual Host or Private Pages Virtual Host to www.xyz.com.
Did this article resolve your issue ?

Legacy Knowledge Base