Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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