Nginx:


Copy default SSL config:

 

cp /var/www/splynx/default/etc/nginx/sites-available/splynx-ssl /etc/nginx/sites-available/splynx-ssl

  

Activate this SSL config:

 

ln -s /etc/nginx/sites-available/splynx-ssl /etc/nginx/sites-enabled/splynx-ssl

 

Deactivate old config (without SSL)

 

rm /etc/nginx/sites-enabled/splynx

 


edit: /etc/nginx/sites-available/splynx-ssl

 and set correct path to your SSL certs:

 


  •         ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
  •         ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;


add redirect from http to https: (for example):


 

server {
        listen 80;
        return 301 https://$server_name$request_uri;  # enforce https
}

 

       

restart nginx:

 

service nginx restart