RE: Domain aliases how to configure in Liferay?

Mark Clarke, modified 6 Years ago. Regular Member Posts: 107 Join Date: 3/3/12 Recent Posts
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
thumbnail
Fernando Fernandez, modified 6 Years ago. Expert Posts: 401 Join Date: 8/22/07 Recent Posts
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
Mark Clarke, modified 6 Years ago. Regular Member Posts: 107 Join Date: 3/3/12 Recent Posts
Thanks. Will go that route.