0

My ec2 ubuntu instance has apache2 working on port 80 and tomcat working on 8080. I'm not able to access them from my browser, i checked the access.log for apache2 it doesn't show the request coming in.

My checklist :

  • AWS Security Group , all traffic inbound and outbound enabled. AWS Security Group inbound rules AWS Security Group outbound rules

  • Service is running. netstat -ntlp service is running telnet 80 telnet 8080

  • iptables has no rules initialized. iptables
  • No errors thrown by either of the services.

  • access log for apache2 enter image description here

I've even tried to telnet to my apache2 server. enter image description here

The issue started when i added an .WAR package to tomcat

  • @kenorb : im able to ssh to the instance – thecreator232 May 30 '15 at 01:34
  • Similar: [AWS ec2 - open port 8080](http://serverfault.com/q/317903/130437) – kenorb May 30 '15 at 10:17
  • Can you ping it? Is your ssh works when using the same IP? – kenorb May 30 '15 at 10:20
  • @kenorb : Yes i can ping it. and my ssh works fine using the same IP – thecreator232 May 30 '15 at 10:21
  • Have you checked `80` or `8080` from different host, maybe it's your Windows firewall which doesn't allow you to connect to it? – kenorb May 30 '15 at 10:26
  • @kenorb : i checked, still getting the same issue. – thecreator232 May 30 '15 at 10:31
  • You could try if the issue is Tomcat specific, then run netcat (`nc -lp 8888 -v`) to listen on `8888`, re-open this port with custom rule and check if that would work. Then re-test from other server, check your firewall `sudo ufw status verbose`, if still doesn't work, then disable your firewall (`sudo service ufw stop`) and re-try. If still doesn't work, maybe test different instance or contact Amazon Support that the added rule doesn't work properly. – kenorb May 30 '15 at 11:09
  • @kenorb : I checked again , even with the firewall down no request's are coming in. – thecreator232 May 30 '15 at 11:15
  • You tested with netcat (`nc`) on different port? Does it print anything with firewall disabled? – kenorb May 30 '15 at 11:17
  • @kenorb : yes i tested with netcat on different ports, its not printing anything – thecreator232 May 30 '15 at 11:20
  • @kenorb : solved the issue , just did a forced restart of the instance. Dont know the reason why , but seems to be an AWS issue. Thanks for the help. – thecreator232 Jun 01 '15 at 16:50
  • That's great you solved it. If you think it'd happen again, try reporting this as an issue to Amazon, maybe they've some problems. – kenorb Jun 01 '15 at 16:53

0 Answers0