Here is my solution to do the redirection.
Say, I have a web site. I host it with SSL.
I want all these three type of host go to the same Unique Internet Address.
There are some requirement:
- Nginx v1.8
- SSL Certificate is issued for both example.com and www.example.com