0
昨天我改变了我的域名帽子foobar.tk,它通过https运行。现在,在我的新域名foobar.eu我没有ssl。NGINX将旧的https域重定向到新的非https
我已成功使用CNAME记录重定向,而我不使用https,但不知何故我无法将https://www.example.tk重定向到http://www.example.eu Chrome表示连接已重置。火狐说的内容不能被验证,...
重定向我使用这些行:
server {
listen 443; (note: i have tried with *:443, *:443 ssl, 443 ssl)
server_name www.example.tk; (i have tried with orwithout www.)
return 301 http://www.example.eu$request_uri; (i have tried to redir to $host also where then cname will handle the issue)
}
什么工作:
http://www.example.tk - >http://www.example.eu使用CNAME(和所有其他子域)
什么不工作:
https://www.example.tk - >http://www.example.eu
我仍然可以备份证书,所以如果它可以帮助某种方式,请告诉我。
谢谢
谢谢,对于以后的回复感到抱歉,我今天会试试这个,并且会接受工作 –