- Get link
- X
- Other Apps
Sanjay Tech solutions
pre requirements.
LEMP stack UP and Runing
you need to install
1. certbot
add-apt-repository ppa:certbot/certbot
apt-get update
apt-get install python-certbot-nginx
NGINX CONFIG
site configuration
$ sudo certbot --nginx -d yrsite.com -d www.yrsite.com -d subdomain.yrsite.com
LEMP with free SSL install on Ubuntu server
pre requirements.LEMP stack UP and Runing
you need to install
1. certbot
add-apt-repository ppa:certbot/certbot
apt-get update
apt-get install python-certbot-nginx
NGINX CONFIG
site configuration
server {
listen 80;
listen [::]:80;
root /var/www/html/sitedir;
server_name yrsite.com www.yrsite.com;
}
make dns record match with a www. record correct ip points
test nginx configuration
$ sudo nginx -t
if successfull then goto next step
reload nginx service
$ sudo systemctl restart nginx
Now Generating Certificate
$ sudo certbot --nginx -d yrsite.com -d www.yrsite.com
little explain command
--nginx certbot module that configuration with nginx
if your site block match with same name then certbot add certificate key into your server block
-d domain name
- d you can add more sub domain here same domain with DNS Point same host.
$ sudo certbot --nginx -d yrsite.com -d www.yrsite.com -d subdomain.yrsite.com
Comments
Post a Comment