I finally got a simple grails app deployed and running on AWS EC2 instance with Tomcat7. How do I configure Apache and/or Tomcat so the app would be accessible from the following URL:

as opposed to how I have to access it now at:

I didn't have to specify port 8080 either so the two are working together nicely.


Simple way: Rename the directory within webapps (or the .war file) to ROOT (or ROOT.war if you're deploying a .war), replacing the default webapp.

Less simple, more flexible: add a <Context> configuration to server.xml to map a webapp to root - set the docBase to your webapp's location and the path to an empty string, "".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.