Problem: I believe I've done everything required to deploy my app, but when I go to my new URL, I get a "problem loading page, server took too long to respond" error from the browser.
- I'm deploying through EC2 for the first time.
- I've got an instance running with Ubuntu 12.04, with an elastic IP associated
- RVM is installed; I'm running Ruby 1.9.3-p194 and Rails 3.2.6
- I went through the Passenger installer, installed the apache packages as instructed, and edited conf files.
- I also bought a domain name from namecheap.com, and listed my EC2 elastic IP with them as the host.
- My app is in /var/www (for example, my 'app' folder is at /var/www/app, and so on)
- Dunno if this is relevant, but I used git to pull my app onto the server.
EDIT: Thanks to commenters, I was able to narrow down the problem: it is something to do with security on my EC2 instance -- requests are never reaching Apache2.
My security group is one I made myself (not "default"), and has three rules, all under TCP: 1) allow SSH access on port 22; 2) allow HTTP access on port 80; 3) allow HTTPS access on port 443. Allowed IPs are 0.0.0.0/0 for all.
Do I maybe need more rules? SSH works fine.
Here's the result of a port scan:
$ nmap -P0 -p80 ec2-xx-xx-x-xxx.compute-1.amazonaws.com Starting Nmap 5.21 ( http://nmap.org ) at 2012-07-16 18:16 UTC Nmap scan report for ec2-xx-xx-x-xxx.compute-1.amazonaws.com (yy.yy.yyy.yyy) Host is up. rDNS record for yy.yy.yyy.yyy: ip-yy.yy.yyy.yyy.ec2.internal PORT STATE SERVICE 80/tcp filtered http Nmap done: 1 IP address (1 host up) scanned in 2.05 seconds
$ sudo ufw status Status: inactive
Again, thanks for any help.