Install Nginx server and secure your website with Certbot SSL ON Ubuntu 18
A web server is computer software and underlying hardware that accepts requests via HTTP and HTTPS the network protocol created to distribute web pages and multimedia content via internet or intranet.
Some famous Web services
Here i am going to explain how to install Nginx webserver and how to configure it
First update your server with latest packages.
sudo apt-get update -y
then install nginx latest version.
sudo apt-get install nginx -y
allow nginx required forts in firewall.
sudo ufw allow 'Nginx Full'
Give folder permission to your Webroot
chown -R $USER:$USER /var/www/html/ chmod -R 755 /var/www/html/
create index.html file in Webroot
echo "Shivam" > /var/www/html/index.html
Check the nginx status and restart it.
sudo service nginx status sudo service nginx restart
add certbots PPA repository and update the os.
sudo add-apt-repository ppa:certbot/certbot -y sudo apt-get update -y
Now we are going to install nginx certbot package.
sudo apt install python-certbot-nginx -y
after that we are going to get ssl using certbot
sudo certbot --nginx -d www.try.venketraman.com -d try.venketraman.com
first it asks mail id for renewal notification
after that its asks agree the license agreement
after that its asks http to https redirection
Give no 2 for certbot auto redirection
now you can check your website is secured with ssl.
additionally you can check your certificate trust level in ssl labs website.
In this article i have explained how to install nginx and how to configure ssl .