Nginx SSL Installation Instructions

In Nginx webserver will the files in NGINX folder be used. Upload the 2 files into /etc/ssl/

  1. Start by specifying the server should listen to port 443: listen 443 ssl;
  2. Make sure the server block includes the line: ssl on;
  3. Define the path of the Certificate: ssl_certificate /etc/ssl/domain.pem;
  4. Define the path of the Key: ssl_certificate_key /etc/ssl/domain.key;
  5. For reference, the SSL part of your configuration file should look similar like below:
    listen 443 ssl;
    ssl on;
    ssl_certificate /etc/ssl/domain.pem;
    ssl_certificate_key /etc/ssl/domain.key;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!AESGCM; ssl_prefer_server_ciphers on;
  6. You can add the following code if you want to force http to https:
    if ($scheme != "https") {
    rewrite ^ https://$host$uri permanent;
  7. Restart NGINX: #systemctl restart nginx
  • SSL, Nginx
  • 507 Users Found This Useful
Was this answer helpful?

Related Articles

How to Install Certificates on Tomcat KeyStore

Convert .PFX to JKS Keystore for Tomcat Server. Using the pfx file in the IIS folder from your...

Some random codes on Apache Reverse Proxy

Check the following codes in case your Reverse Proxy not working properly: Header set...

How to add or change Reverse Proxy in aaPanel?

Log into your aaPanel, go Website>Reverse Proxy>Config do as the following to add a...

How to deploy SSl certificate in aaPanel?

Once your SSL issued you can easily deploy it on aaPanel. If you don't know how to get your...

IP SSL Deployment on cPanel Server

Combine your key file, Certificate file and Intermediate/Chain files into a file named...