i have aspera servers and there webroot is in a unique location ie
so when i run certbot, can i do this
certbot certonly --webroot -d domain.com /opt/aspera/shares/etc/nginx/nginx.conf
will this work
A webroot is a directory in which your website is. It's usually
/var/www/html and matches the
root directive in nginx config.
But I think Certbot has a setting to tell it where the nginx config is. It's not
As @9peppe already said, your concept of "webroot" is incorrect. You probably mean the nginx server root directory. You can set it by using the
Please also see the output of:
certbot --help nginx
to get the help output for the nginx plugin.
And the order is incorrect; You wrote
--webroot -d domain.com and then the supposed webroot path.
The correct order is:
--webroot -w "path" and then the domain(s).
So, to answer your question:
I'd say "no" (for several reasons)
... and if you want to know why is that, that's because you can have multiple webroots in the same command, each applies to the domains that follow:
certbot --webroot -w /var/www/site1 -d site1.example.com -w /var/www/site2 -d site2.example.com
Do that if you want a single certificate for two sites that do not share a webroot.
makes sense, thank you guys
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.