User Tools

Site Tools


ubuntu:nginx:certificate_installation

Ubuntu - nginx - Certificate installation

Configure the certificate

/etc/nginx/nginx.conf
server {
  listen   443;
 
  ssl on;
  ssl_certificate    /etc/ssl/your_domain_name.pem; (or bundle.crt)
  ssl_certificate_key    /etc/ssl/your_domain_name.key;
 
  server_name your.domain.com;
  access_log /var/log/nginx/nginx.vhost.access.log;
  error_log /var/log/nginx/nginx.vhost.error.log;
  location / {
    root   /home/www/public_html/your.domain.com/public/;
    index  index.html;
  }
}

Adjust the file names to match your certificate files:


Restart Nginx

Run the following command to restart Nginx:

sudo /etc/init.d/nginx restart
ubuntu/nginx/certificate_installation.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki