0% found this document useful (0 votes)
3 views12 pages

Aws Practical-05

The document outlines the steps to host a static website using AWS EC2, starting from creating an EC2 instance to moving the website files to the appropriate directory. Key actions include setting up a security group, installing the HTTP server, and configuring inbound rules for HTTP and HTTPS traffic. Finally, it instructs on how to access the website using the instance's public IPv4 address.

Uploaded by

Tanisha Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views12 pages

Aws Practical-05

The document outlines the steps to host a static website using AWS EC2, starting from creating an EC2 instance to moving the website files to the appropriate directory. Key actions include setting up a security group, installing the HTTP server, and configuring inbound rules for HTTP and HTTPS traffic. Finally, it instructs on how to access the website using the instance's public IPv4 address.

Uploaded by

Tanisha Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

TANISHA GUPTA

22BSA10026

Practical 5: Hosting a static website


using AWS EC2

26
STEPS TO FOLLOW ARE GIVEN BELOW-

00
A1
BS
1. Create an EC2 instance(Amazon Linux)-
2. Create key pair- Download it. 22
3. Create a security group(Tick all the available options below)
4. Instance successfully initiated
A
5.Connect to instance using EC2- Instance Connect
PT

6. Open terminal using SSH.


7. sudo su – (get root access) in terminal of the instance
U

8. yum update -y (update the system)


G

9. yum install httpd -y (install httpd web server)


10. systemctl status httpd (check status of web server)
A

11. mkdir temp (create temp folder)


H

12. wget
IS

https://www.free-css.com/assets/files/free-css-templates/download/pa
N

ge292/settle.zip (For getting the Website in Zipped form)


TA

13. unzip downloaded website zip folder


14. cd unzipped-folder-location / ls -lrt (check contents of folder)
15. mv * /var/www/html/ (move website folder to destination folder)16.
ls -lrt (checking moved folder)
17. Change inbound rules to allow HTTP and HTTPS traffic from the
instance Security Group18. Server has started running…
19. Copy the Public IPv4 address of the instance
20. add http://the ip address
21. The website will be loaded .

26
00
A1
BS
22
A
PT
U
G
A
H
IS
N
TA
TA
N
IS
H
A
G
U
PT
A
22
BS
A1
00
26
TA
N
IS
H
A
G
U
PT
A
22
BS
A1
00
26
TA
N
IS
H
A
G
U
PT
A
22
BS
A1
00
26
TA
N
IS
H
A
G
U
PT
A
22
BS
A1
00
26
TA
N
IS
H
A
G
U
PT
A
22
BS
A1
00
26
TA
N
IS
H
A
G
U
PT
A
22
BS
A1
00
26
TA
N
IS
H
A
G
U
PT
A
22
BS
A1
00
26
TA
N
IS
H
A
G
U
PT
A
22
BS
A1
00
26
TA
N
IS
H
A
G
U
PT
A
22
BS
A1
00
26
TA
N
IS
H
A
G
U
PT
A
22
BS
A1
00
26

You might also like