How to Host Static Web Page in EC2 AWS

Опубликовано: 11 Июль 2026
на канале: Byte Novus
1,276
19

Subscribe to my channel for FREE Here:
   / @bytenovus  

Follow me on GitHub: https://github.com/Viyaan

For AWS Beginners: Host your Static Web page in EC2

Commands used.

Become a root = sudo su

get the list of Softwares = apt-get update

Install the apache2 webserver = apt-get install apache2

Start apache2 = service apache2 start

Move to the default html folder = cd /var/www/html

Delete the existing index.html = rm -rf index.html

Create a new index.html = echo "Hello, Code to Demo of Code Tube!" > index.html