Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.6 KB

clom1eyyj000309l56ygn2p5b.md

File metadata and controls

61 lines (41 loc) · 1.6 KB
title seoTitle seoDescription datePublished cuid slug cover ogImage tags
DevOps 3.4: Nginx Setup
DevOps 3.4: Optimizing Web Traffic with Nginx Configuration
Optimizing Web Service with Nginx Configuration and Deployment.
Sun Nov 05 2023 22:20:56 GMT+0000 (Coordinated Universal Time)
clom1eyyj000309l56ygn2p5b
devops-34-nginx-setup
linux, nginx, devops, reverse-proxy, wemakedevs

Nginx Setup:

  1. Login to nginx vm:

    vagrant ssh web01
  2. sudo -i go to the root user.

  3. Update OS with the latest patches.

    apt update && apt upgrade -y
  4. Then install the nginx

    apt install nginx -y
  5. Create a nginx file:

    vi /etc/nginx/sites-available/vproapp
  6. Below you can see the initial configuration file which is enabled now -

  7. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1699221978595/010c6add-0bda-4519-a354-d80e810e3539.png align="center")

    Now remove that link using rm -rf /etc/nginx/sites-enabled/default .

  8. Create a link to activate the website

    ln -s /etc/nginx/sites-available/vproapp /etc/nginx/sites-enabled/vproapp
  9. Then restart the nginx -

    systemctl restart nginx

In the next blog, we will see this project in action !!! Do check it out !!