AWS – Host Free website
You can use AWS account free and it Includes 12 Months of Free Tier Access for following products: Amazon EC2, Amazon S3, and Amazon RDS.
- Create AWS account
- Create new AWS account by filling the details on URL: https://portal.aws.amazon.com/billing/signup#/start
- Management Console
- On Amazon EC2 Console Dashboard, click “Launch Instance” button.
- Select “Micro” instance (included in the free tier)
- Create/setup security groups
- Add “SSH” (required for login to EC2 instance)
- Add “HTTP” and “HTTPS” (to enable web traffic to outside)
- Launch server with EC2
- Once you submit all the required details, you will see the review of EC2 instance to launch.
- Clicking on “Launch”. Go to the management console and you will see the listing of a new EC2 instance with status as “Pending”.
- After few seconds, the status will be changed to “running”.
- On click on Instance name, you will see details of selected instance.
- There will be “Public DNS” entry, that’s a web address used to access the instance.
- Upload/setup static website to EC2 using terminal
- Login using SSH using key (.pem file) using the following commands:
# ssh -i KEYFILE-NAME.pem user@host (in this case host will be the web address “Public DNS”.)
# sudo su – (connect using root) - Once connected to the server, install Apache on the server:
- For installing Apache web server, use command:
#yum install httpd
- For installing Apache web server, use command:
- Go to path “/var/www/html/” and download your website code/zip file there.
- Extract code there to this root directory.
- Start Apache web server using the following command:
#service httpd start - Check Apache web server status using the following command:
#service httpd status
- Login using SSH using key (.pem file) using the following commands:
Once all these above steps will be done, you will be able to run your static website on the Public DNS URL.
You can check this link for more details: https://aws.amazon.com/free/
Ready to Solve Your Most Complex Technical Challenges?
Our senior advisors are ready to help you navigate the ever-evolving technology landscape with precision and expertise.
Schedule a ConsultationRelated Articles
Setup GitHub authentication on Mac
You have to configure Git with your GitHub account and set up secure authentication and the recommended approach is to use SSH…
Different deployment environments!
Many organizations these days are utilizing numerous deployment environments, which their DevOps groups use to approve the necessary features prior to moving…
Microservices architecture
Microservice architecture is a method of software development to break down the application into small isolated functions which are called “services”. Services…