By. 201735839 서장원
Instance types in Amazon EC2(It provides numerous additional features to help you deploy, manage and scale your applications)
Steps for making my own Webserver in AWS
Signup for AWS
Make an instance
Click Start Instance
AMI : Amazon Linux
Instance : t2.micro (AWS free tier)
Since the EC2 instance needs to be accessed through the terminal, SSH port 22 is set as the default value.
The private key file downloaded at this time cannot be downloaded again. Be sure to store it in a safe, secure location.
You can confirm that the instance was created successfully!
To make access to port 80 , we should create for HTTP
0.0.0.0/0 means Anyone can access to this server.
Webserver Install
Now, I will connect to the newly created instance via SSH and install the Apache web server. Copy the command displayed in the SSH client tab as shown below, then open a CMD window in administrator mode in Windows.
Download Putty, Putty Gen
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
We should convert .pem file to .ppk file for ssh connect
4)Connect AWS using Putty
Host name : ubuntu@ ~ (can find it in your ec2)
5)Put your key(ppk file)
6)Click Open and success!
7)Apache server Install
sudo apt-get install apache2
Check the Server
1)Type public ip to connect to apache server
https://filezilla-project.org/download.php?platform=win64
add your key file in Settings - SFTP
Click Site manager, Make a new site (Click new site)
If is connected your local is in the left and the instance from AWS is in the right
I will delete the index.html which is AWS apache default page and upload my homepage
sudo rm /var/www/html/index.html
delete the html folder.
Before uploading your folder you should give permission!
sudo chmod -R 777 /var/www/html
If its done , you could drag and drop Using FileZilla
You can see that file is uploaded correctly!