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. From: http://example.com/ http://www.example.com/ https://example.com/ To: https://www.example.com/ There are some requirement: Nginx v1.8 SSL Certificate is issued for both  example.com and www.example.com