[英]Https and SSL issue with port 80
Recently I just start using https:// for my server and the strange thing is that I can open if I explicitly type " https://www.example.com:80 " but won't be able to connect if i type " https://www.example.com ". 最近我开始使用https://为我的服务器,奇怪的是我可以打开,如果我明确键入“ https://www.example.com:80 ”但如果我键入“将无法连接” https://www.example.com “。
I am using NodeJS with Express 4 framework hosted on Digital Ocean. 我正在使用NodeJS和Digital Ocean上托管的Express 4框架。
What can I do to let people access my website normally? 我该怎么办才能让人们正常访问我的网站? And also is it normal that they have to click "accept" first time they visit?
他们第一次访问时必须点击“接受”这是正常的吗? Why for other https website I dont have to do that?
为什么其他https网站我不必这样做?
I am using RapidSSL. 我正在使用RapidSSL。
Your question is light on details, but here are the two likely guesses: 你的问题很清楚细节,但这里有两个可能的猜测:
If you want your SSL server to work by default when users type https://xxxx
, then your server needs to be running on port 443, not port 80. That's the default port number reserved for https connections and is the port number that the browser will try if the user just enters a https://xxxx
URL. 如果您希望SSL服务器在用户键入
https://xxxx
时默认工作,那么您的服务器需要在端口443上运行,而不是在端口80上运行。这是为https连接保留的默认端口号,是端口号如果用户只输入https://xxxx
URL,浏览器将尝试。
If the browser is prompting you for permission to connect to your site, then that is likely because the SSL certificate you are using is not signed by one of the certificate authorities that the browsers trust (perhaps it is a self signed certificate). 如果浏览器提示您有权连接到您的站点,则可能是因为您使用的SSL证书未由浏览器信任的证书颁发机构之一签名(可能是自签名证书)。 You can solve that issue by getting a certificate from the right trusted source and using that certificate in your server.
您可以通过从正确的受信任来源获取证书并在服务器中使用该证书来解决该问题。 It's also a possibility that something else is wrong with your SSL configuration, but we'd need to see more detail about the situation to know.
这也可能是您的SSL配置出现其他问题,但我们需要了解有关情况的更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.