views:

42

answers:

1

Is there any way of configuring the embedded tomcat (from run-app) to respond to myapp.localhost:8080 instead of localhost:8080/myapp ?

+2  A: 

modify your local hosts file so myapp.localhost points to localhost

127.0.0.1         myapp.localhost

modify the conf/Config.groovy and add grails.app.context = “/”

Aaron Saunders
But I will still have to put the URL: http://myapp.localhost:8080/myapp - I want to configure the server to use the root. It also doesn't matter that the domain is myapp.localhost or just localhost.
cripox
@cripox see edits to solve second part of question
Aaron Saunders