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:

http://107.20.253.141/

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

http://107.20.253.141/Grails2Test-0.1/

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

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

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, "".

link|improve this answer
Thanks a bunch! Simple is good for the moment :-) – vector Oct 7 '11 at 23:38
feedback

Your Answer

 
or
required, but never shown

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