Sunday, June 11, 2017

nginx - SSL certificate for www. and non-www domain

What SSL certificate should I buy to get my domain work?
I use nginx web server and want that all users requests go to https.



http://example.com -> https://example.com
http://www.example.com -> https://example.com
https://example.com -> https://example.com

https://www.example.com -> https://example.com


Do I have to buy 2 certificates for both domains example.com and www.example.com?
Or may I buy only one certificate with subdomain support?
What does SAN mean in SSL-certificates and how can it help me?



What nginx config do I need to get desire redirection?



Thanks.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...