Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Domain aliases how to configure in Liferay?
Hi there,
I have read several posts and artilces with people asking about alias domains and can't find a proper answer. There seems to be some confusion as to why people would want this and if its possible of not. The solutions I saw do not address the problem. Maybe there is no solution and that is ok as long I can find a definiteve answer.
What we want to do.
1) We register multiple doman names for a site when required. e.g company.com company.eu company.co.za etc
2) When we create the intial site we need all domain names to point to the same site. (Not instance - a site on an instance),
3) We do not want to use redirect as this will change the URL
4) We want to simple show the site on a different domain
5) I know there is now a canonical tag added to liferay so this takes care of duplicate content issue with google
The question is how do we add the aliases to the domain since "site settings" has only one input for domain name. We are fronting tomcat with nginx. I can do the alias in nginx but not sure how to tell liferay where to "send" the url. I assume sites are not edited in tomcat's server.xml but routed via a servlet in liferay.
Any help appreciated.
thanks
I have read several posts and artilces with people asking about alias domains and can't find a proper answer. There seems to be some confusion as to why people would want this and if its possible of not. The solutions I saw do not address the problem. Maybe there is no solution and that is ok as long I can find a definiteve answer.
What we want to do.
1) We register multiple doman names for a site when required. e.g company.com company.eu company.co.za etc
2) When we create the intial site we need all domain names to point to the same site. (Not instance - a site on an instance),
3) We do not want to use redirect as this will change the URL
4) We want to simple show the site on a different domain
5) I know there is now a canonical tag added to liferay so this takes care of duplicate content issue with google
The question is how do we add the aliases to the domain since "site settings" has only one input for domain name. We are fronting tomcat with nginx. I can do the alias in nginx but not sure how to tell liferay where to "send" the url. I assume sites are not edited in tomcat's server.xml but routed via a servlet in liferay.
Any help appreciated.
thanks
Hi Mark,
I'm not fluent in nginx but with apache I think you would do that with mod_rewrite or mod_proxy. I used to have a liferay server configured as localhost:8080 and the front-end apache took care of rewriting that to whatever public servername was being used. So I think you could do that with several servernames simultaneously.
HTH.
Fernando
I'm not fluent in nginx but with apache I think you would do that with mod_rewrite or mod_proxy. I used to have a liferay server configured as localhost:8080 and the front-end apache took care of rewriting that to whatever public servername was being used. So I think you could do that with several servernames simultaneously.
HTH.
Fernando
Thanks. Will go that route.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™