menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Devops News

>

🚀 How I D...
source image

Dev

1w

read

8

img
dot

Image Credit: Dev

🚀 How I Deployed My Ubuntu EC2 Instance with NGINX and Customized My Web Page

  • The post details the process of launching an Ubuntu EC2 instance on AWS, installing NGINX, and customizing a web page to display the author's name and the current date.
  • Requirements for the process include an AWS account, a key pair (.pem file), and PowerShell or Git Bash on Windows.
  • Step 1 involves launching a new Ubuntu EC2 instance named 'nginx-demo' with Ubuntu Server 22.04 LTS AMI, t2.micro instance type, and proper network settings.
  • Upon launching, the public IPv4 address is copied for later use.
  • Step 2 explains how to connect to the EC2 instance via PowerShell using the .pem key file.
  • Step 3 guides on installing NGINX on the EC2 instance using appropriate terminal commands.
  • Start and enable the NGINX service using systemctl commands as part of Step 3.
  • Step 4 includes customizing the default NGINX web page by editing the index.nginx-debian.html file with personalized content.
  • Instructions provided for replacing the default body content with custom HTML displaying the author's name and the date.
  • Step 5 instructs to test the customized page by accessing the EC2 public IP in a web browser.
  • By following the steps, users should see the personalized NGINX page with the specified content.
  • The post includes terminal commands and screenshots to aid in the deployment process.

Read Full Article

like

Like

For uninterrupted reading, download the app