I am trying to setup a new website for myself.
- Decided to use aws Free-tier. I still have not figured out the domain name and where to register it. I am thinking GoDaddy for this.
- Created a Ubuntu linux instance in free-tier. I created a new key pair and downloaded it while creating the Ubuntu EC2 instance.
- Configured Seucrity Groups in http://aws.amazon.com to allow SSH from computers that I usually use.
- Putty-ed into the instance and installed apache. sudo apt-get install apache2
- Changed Security Group to allow HTTP connection from "Anywhere". Anywhere was one of the options - other options was to restrict it to my IP, and use Subnet mask.
- Apache was running while the installation was complete. In case, I had to start it, I would have used sudo apache2 start.
- Gave the Public DNS of my instance in my browser, I got the apache's index.html. This index.html is located in this directory /var/www/html/. /var/www/html/ is the default Document Root. If you need to change the Document Root, use /etc/apache2/sites-available/000-default.conf file.