Grails dynamic basis for multi-url webapp

Anyone have an idea how to use dynamic baseurl ??

fe: I have a .war file and I want to deploy the same war for www.webapp1.com and www.webapp2.com

I tried to use an alias for my server.xml server and I tried to use a dedicated node in server.xml .. but every time I try to use url webapp2.com, I get webapp1.com.

+3
source share
1 answer

Grails registers a bean with a name grailsLinkGenerator. I believe that you can accomplish what you are trying to do by overriding this bean with your own logic. Your bean should implement the LinkGenerator interface . It might be easier for you to distribute DefaultLinkGenerator or CachingLinkGenerator

+3
source

All Articles