I'm trying to get my feet wet with amazon web services and have SSH my instance and created a user, named logan, with admin rights. I then connected to the EC2 instance with the username and password I had created for the account using Cyberduck and uploaded a plain HTML file to make sure I had things working.
For some reason I cannot connect through my browser to:
home/logan/testtestesttest.html
I get a 404 page not found error.
I know that Apache was successfully installed though because if I type the elastic IP address in my address bar without any location afterword I get the "It works!" default page.
As far as the security groups for the instance go, I have HTTP open on port 80 to all IP addresses(0.0.0.0/0) and SSH open to my personal IP on port 22.
Thanks in advance,
-Logan
Did you put the file in
/var/www/html/
? That's where HTML files go by default.You can run
apache2ctl -S
to get some output of Apache's configuration andgrep -r DocumentRoot /etc/apache2/
to find out where all the files are served from.I think you need to check the apache config file and find out where exactly is the default DocumentRoot. Some distros default is
/var/www/localhost