NginX – Configure SSL (https)

Configure nginx, open /conf/nginx.conf then start nginx

   server {

        listen       443 ssl;

        server_name  your domain;

        ssl_certificate      D:/nginx-1.15.6/ssl/xxxxx-chain.pem;  

        ssl_certificate_key  D:/nginx-1.15.6/ssl/xxxxxx-key.pem;  

        ssl_session_timeout 5m;

        charset utf-8;

        location / {

            root  D:/index/;

            index index.html;

        }

    }

Was this helpful?

0 / 0