Skip to content
Advertisement

Cannot access Tomcat via web after EC2 reboot

I rebooted my Amazon EC2 instance, and now I can’t connect to my Tomcat7 web server via the web.

Here’s what I’ve tried, to no avail:
1) Confirmed that my settings are correct in Tomcat’s server.xml file:

JavaScript

2) updated my iptables via this post:

JavaScript

3) Reviewed my tomcat catalina.out log (success, no errors)

4) Tried connecting to my domain via ip. It redirects to https, but doesn’t show anything. I cannot get either of my webapps up, nor the Tomcat7 homepage.

Any help would be appreciated!

Advertisement

Answer

It looks like my iptables commands may have been off a bit. Here’s what I ran to get it to work:

JavaScript

It looks like I need to open up ports 443 and 8443 as well. I’ll leave this post up so others can refer to it if they come across the same issue.

UPDATE: I also needed to update my server.xml, changing

JavaScript

to:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement