SSL on a LEMP stack?

2.93K views
0

How do I set up a site to use SSL on a LEMP stack?

0
Anonymous 1 Comment

Use spdy if possible:

listen 443 spdy

Run the following to see if nginx has spdy support

sudo nginx -V

It’s not necessary to run nginx -V with sudo.

0

You’ll want a server block listening on 443:

listen 443 ssl;

And assuming you have the certificate and key files already, you’ll reference them in that block with:

ssl_certificate /srv/ssl/example.com,chained.crt;
ssl_certificate_key /srv/sssl/example.com.key;