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 namedxyz.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 pointwww.xyz.com
toxyz.com
. But the following error occurred:
Environment
- Liferay PaaS
Resolution
-
Add www.xyz.com as a new custom domain in the webserver
- 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
.
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In