How to safe add http_ssl_module to already working nginx?

I have already running nginx server (Ubuntu LEMP on 14.04) but I need add SSL module to them. How to safely add new module without losing all config, db and long stop site running?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I believe that the ssl module is installed by default and should already be available to you. It is included in the Ubuntu packages used to build the one-click and enabling SSL for your site should just be a matter of adding a certificate and the appropriate configuration.

If you want to get set up with a free SSL certificate for your droplet, this guide will walk you through setting up a LetsEncrypt certificate.