I have been trying to install the SSL certificate on my droplet on Digital Ocean. This droplet is running NGINX / Ubuntu 16.04 x64.
I don't have any cPanel just a terminal with SSH connection.
I have also talked to the Digital Ocean's support guy and he shared 2 tutorials with me which I have tried. But following those tutorials end up breaking my site.
I have edit the /etc/nginx/nginx.conf and added the server block like this in http block:
server {
listen 443 ssl;
server_name www.example.com;
ssl_certificate /home/user/example/www.example.com.crt;
ssl_certificate_key /home/user/example/www.example.com.key;
}
What I'm doing wrong and what is the right way?
I'm confused which file to edit.
I have:
1) /etc/ngix/ngix.conf
2) /etc/nginx/sites-available/default
3) /etc/nginx/sites-available/defaultu
4) /etc/nginx/sites-available/example.com
5) /etc/nginx/sites-enabled/example.com
Please I need help...