Is it possible to map a root domain URL to a Grails' controller?

Posted by firnnauriel on Stack Overflow See other posts from Stack Overflow or by firnnauriel
Published on 2010-04-08T10:20:42Z Indexed on 2010/04/08 10:23 UTC
Read the original article Hit count: 256

Filed under:
|
|

Let's have an example: A grails project, myproj, is deployed in Tomcat 6. It can be accessed anywhere thru this link: http://www.mycompany.com/myproj.

Let's say we purchase another domain, http://newcompany.com, and we would like to point it to http://www.mycompany.com/myproj/url.

If I go to http://newcompany.com/12345, it should be the same as doing http://www.mycompany.com/myproj/url/12345.

Can anyone tell me if this is possible? How to implement it (change Tomcat 6 config, add code in UrlMappings.groovy)?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about grails

Related posts about tomcat