NGINX Alias domain redirect to HTTPS main domain

时间:2018-09-19 08:18:43

标签: ssl nginx

I have two domain names:

domain1.com - Main domain with SSL

domain2.com - alias of the domain1.com

For domain1.com I have purchased SSL certificate and installed it properly and it works fine. Now I want to redirect traffic from domain2.com to domain1.com (SSL), but the issue is that I am keep getting error: "Connection not private".

How can I redirect domain2.com alias domain in nginx to main domain with ssl without the above error?

0 个答案:

没有答案