I have an NGINX server where I am trying to add SSL using Let's Encrypt .
My development settings are as follows:
url : dev.domain.in
root: /var/www/dev/html
The Production is as follows:
url : domain.in
root: /var/www/production/html
So in my nginx default page I have two server blocks one for development and another for production
I want to give one certificate for both the servers.
I know according to the Let's Encrypt website the command is as follows
cd /opt/letsencrypt ./letsencrypt-auto certonly -a webroot --webroot-path=/usr/share/nginx/html -d example.com -d www.example.com
But this can be done only if the SUBDOMAIN has the same webroot which not true in my case.
So how I can add the CERT for both here
Please help me out