Nginx HTTPS
Nginx HTTPS using Letsencrypt
Purchasing SSLs are costly. Therefore, we will be using Letsencrypt for making our Nginx web server able to use HTTPS.
Generate SSL
Edit Nginx Config
In file /etc/nginx/conf.d/default.conf
Set
DOMAIN_NAME
as your domain name that you have generated SSL with. The config above will also redirect HTTP to HTTPS as well
Reload Nginx
Last updated