A Simple website launch using Apache2 in the OS ubuntu in the cloud AWS
- Create a VPC
- Create public subnet
- Create Route table and configure route with subnet
- Create an public ec2 instance in ubuntu OS
- Install Apache Webserver (Apache2)
- Create Security group and set inbound rules for http and ssh
sudo su -
apt update
apt install apache2
- Find the index.html file.If not create a file (/var/www/html/index.html)
- Now start and enable the apache server
systemctl start apache2
systemctl enable apache2
systemctl status apache2
- Now take the public ip address of the ec2 instance and type it on google URL, you will below image on succcessful launching of website.
(above image is for default index.html)
- Always check for security groups if http and ssh enabled.
- Ec2 instance should have public ip address
- File name always should be index.html or home.html