INTRODUCTION:
The task for the stage 0 requires the configuration and installation of nginx server on an fresh ubuntu server.
The aim of this task is to establish my ability to setup a functional webserver.
Project Summary:
STEP 1
Lunch an EC2 instance
Name: nginx-server
AMI: Ubuntu server 24.04
Keypair: Mykey.pem
Security Group: Inbound Rule: All traffic access (Port 22 and Port 80),
Outbound Rule: All traffic access
Instance type: t2 micro(Free eligibility)
STEP 2
Connect to the EC2 Instance from the terminal.
Locate and Change permissions of the key file: chmod 400 keypair
connect through ssh: ssh keypair ubuntu@ip-add
update and upgrade package list: sudo apt update && upgrade
install nginx: sudo apt install nginx -y
start and enable nginx: sudo systemctl start nginx/enable nginx
check status of nginx to ensure it is running: sudo systemctl status nginx
STEP 3
Configure html file.
run sudo vim /var/www/html/index.html
click on 'i' to get into insert mode. input the text file . click esc and save and exit with :wq
restart nginx: sudo systemctl restart nginx
verify the setup: sudo systemctl status nginx
reverify on the web server: http://your server-ip
CHALLANGES FACED
Accessing my webpage was a herculin task and my server was constantly timed out upon connecting to the instance on the terminal. Had to edit my security group to allow port 80 (http)and allow port 22 (ssh).
IMPORTANCE OF THE TASK
- To build the core competences of Devops foundation training
- To Develop strong technical and documentation skills
- To gain understanding of web hosting and deployment, firewall and security basics
- To also improve Linux and command line proficiency.
CONCLUSION
This project strengthens my fundamental DevOps skills, serving as a crucial learning milestone. It instills in me a solid foundation for cloud deployments, automation, and infrastructure management—key competencies needed in the DevOps learning journey.
REFERENCES
Devops Engineers-
AWS Solutions Architects -
Top comments (0)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.