Nginx SSL Installation Instructions

In Nginx webserver will the file in NGINX folder be used(which you find in the SSL zip file from 12ssl). Upload the 2 file into /etc/ssl/

  1. Start by specifying the server should listen to port 443: listen 443;
  2. Make sure the server block includes the line: ssl on;
  3. Define the path of the SSL certificate: ssl_certificate /etc/ssl/domain.pem;
  4. Specify the directory where the SSL Certificate Key is located: /etc/ssl/domain.key;
  5. The configuration file should look similar to the one below:
    server {
    listen 443;
    ssl on;
    ssl_certificate /etc/ssl/domain.pem;
    ssl_certificate_key /etc/ssl/domain.key;
    root /path/to/webroot;
    access_log /var/log/nginx/nginx.vhost.access.log;
    error_log /var/log/nginx/nginx.vhost.error.log;
    location / {
    root /var/www/;
    root  /home/www/public_html/;
    index index.html;
  6. Restart NGINX Server by excute # systemctl restart nginx
  • SSL, Nginx
  • 507 Users Found This Useful
Was this answer helpful?

Related Articles

Apache SSL Installation Instructions

Upload the SSL file in Apache folder which you find in the zip file from 12ssl to /etc/ssl/....