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.comtoxyz.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.