DevOps 3.4: Nginx Setup

"Optimizing Web Traffic: Configuring Nginx for Your DevOps Project."

ยท

1 min read

DevOps 3.4: Nginx Setup

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. 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 !!

ย