SSL on a LEMP stack?

8.06K viewsConfiguration Intermediate SSL

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

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.


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/,chained.crt;
ssl_certificate_key /srv/sssl/;