How to make Tomcat on AWS EC2 available from outside localhost

Viewed 11782

I'm trying to run Tomcat on an AWS Linux server. I've installed Tomcat, and tested it from the command line to make sure it's working, but I can't access it from another machine. The details:

  1. The instance has port 80 incoming for HTTP open in the security group.
  2. I have verified that it's running on port 80 by telnetting into localhost on that port and doing a GET request.
  3. I tried adding the public DNS as an alias for localhost in server.xml then restarting to make sure the changes are picked up.

Yet if I try to access it via my browser (outside the actual server) using the public DNS I get "could not connect".

Any ideas?

Thanks...

4 Answers
Related