DevOps 3.4: Nginx Setup
"Optimizing Web Traffic: Configuring Nginx for Your DevOps Project."
Nginx Setup:
Login to nginx vm:
vagrant ssh web01
sudo -i
go to the root user.Update OS with the latest patches.
apt update && apt upgrade -y
Then install the nginx
apt install nginx -y
Create a nginx file:
vi /etc/nginx/sites-available/vproapp
Below you can see the initial configuration file which is enabled now -
Now remove that link using
rm -rf /etc/nginx/sites-enabled/default
.Create a link to activate the website
ln -s /etc/nginx/sites-available/vproapp /etc/nginx/sites-enabled/vproapp
Then restart the nginx -
systemctl restart nginx
In the next blog, we will see this project in action !!! Do check it out !!
ย