AWS - Series EC2 : Hosting Static web Application in Linux

 Hello All

Today we are going to see, how to deploy the Static web  Application in Linux platform  in AWS cloud 



Below are the steps in AWS Linux instance 

  1.  Create an AWS Instance of  Linux OS
  2. Create or Modify the security group inbound traffic to allow the HTTP port on 80
  3. Change to Sudo Profile
  4. Install Apache Server in AWS linux
  5. http://themesseo.com/  - This website provides the list of web host applications for practise
  6. Download the package 
  7. Unzip the package 
  8. Host the web application 

  •  Create an AWS Instance of  Linux OS
Refer the below link for AWS Linux Instance creation

https://cloudmonkeys20.blogspot.com/2024/02/aws-series-ec2-creation-of-aws-linux-2.html

  • Create or Modify the security group inbound traffic to allow the HTTP port on 80
Select the instance




Select the security TAB 





Edit the Inbound Rule




Add the HTTP Traffic



  • Change to Sudo Profile

  • Install Apache Server in AWS linux
sudo yum install httpd

Once the Apache package installed successfully. Start the httpd service 

Systeemctl httpd start

Ensure the httpd service is active

  • http://themesseo.com/  - This website provides the list of web host applications for practise

in any of the browser - open the link http://themesseo.com/

Select the category you want from left-side









Right click the download button and select copy Link address

Go back to the AWS linux server with SUDO access

use wget command to download the package 

Navigate to the below directory and download 

cd  /var/www/html

 




  • Unzip the package

The package name in my case is classyads.zip

To unzip the package run the below command

unzip classads.zip



All the required files are extracted in the folder called "Classyads"


  • Host the web application using  Public IP


Open any browser and type : http://publicIP/classyads



I believe, this blog helps us to host any web applications in AWS EC2 Linux OS. Happy Learning 😃 

Comments