ASTPP install SSL
To install SSL on ASTPP server, edit file
1 |
vi /etc/nginx/ssl/nginx.crt; |
Add your SSL cert on this file. It is good idea to paste your ca-bundle file content after SSL cert, so you have full chain.
1 |
vi /etc/nginx/ssl/nginx.key |
Add SSL private key.
Now restart Nginx
1 |
nginx -s reload |
By default if you use non HTTPS link, you get default nginx page. To avoid this, set a redirect by editing file
1 |
vi /etc/nginx/sites-enabled/defaul |
Add inside default server entry
1 |
return 301 https://YOUR_URL-HERE/; |
Now restart nginx.
1 |
nginx -s reload |
See ASTPP