Aws – ec2 – linux – apache : can’t access index.html from the outside

amazon ec2amazon-web-servicesapache-2.2

I'm trying to figure out why index.html is invisible from the outside of ec2 instance on AWS. Already verified that the server is running (netstat -lp) and curl gets a 404 error ( all the gory details are here)

Now the logs, access just shows the 404 error, fine

/var/log/httpd/elasticbeanstalk-access_log:

[06/Oct/2011:10:30:43 +0000] "GET / HTTP/1.1" 404 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko)

Error long is a complete mystery though:
/var/log/httpd/error_log:

[Thu Oct 06 03:36:08 2011] [notice] caught SIGTERM, shutting down
[Thu Oct 06 10:30:32 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Oct 06 10:30:32 2011] [notice] Digest: generating secret for digest authentication ...
[Thu Oct 06 10:30:32 2011] [notice] Digest: done
[Thu Oct 06 10:30:32 2011] [notice] Apache/2.2.16 (Unix) DAV/2 configured -- resuming normal operations

PS: I don't see any vhost configured in the httpd.conf, the whole section at the bottom of the file is commented out 🙁

Best Answer

Your server is reponding with a 404 Not Found error. Check that your DocumentRoot is configured and that there is a directory containing an index file in it.