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

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.
Was this article helpful?
0 out of 0 found this helpful