Nginx SSL Commericial Certificate Installation Ubuntu 18.04 LTS

Posted September 10, 2021 152 views

In the below config settings, what does webroot refer too? The var/www folder? This is for a commerical ssl certificate, not the free stuff.

server {

listen 443 ssl;

ssl_certificate /path/to/certificate/your_domain_chain.crt;

ssl_certificate_key /path/to/your_private.key;

root /path/to/webroot;


edited by bobbyiliev
1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


As Sergio Turpín mentioned, this is the full path to where your website files are stored.

If you are not 100% sure what it is, you can get it from your non-SSL server block file. In there you should be able to see all of the extra configuration settings that you might have to carry over to your SSL server block too.