简体   繁体   English

端口80的Https和SSL问题

[英]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: 你的问题很清楚细节,但这里有两个可能的猜测:

  1. 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,浏览器将尝试。

  2. 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.

相关问题 在不使用端口 80 (http) 或端口 43 (https) 的情况下,如何在 AWS EC2 上运行的 NodeJS 中编写 SSL 重定向? - How do you write an SSL redirect in NodeJS running on AWS EC2 without using port 80 (http) or port 43 (https)? https hapijs服务器无法在端口80(ERR_CONNECTION_REFUSED)上运行 - https hapijs server not working on port 80 (ERR_CONNECTION_REFUSED) 在443端口上使用SSL运行节点应用(在80上正在运行) - Run node app with SSL on 443 port (on 80 is working) 在端口 80(动态端口)上访问节点服务器的问题 - Issue accessing node server on port 80(dynamic port) 如何创建http将端口80上的http请求重定向到端口443上的https? - How do create an http redirect an http request coming in on port 80 to https on port 443? 将SSL(PORT 443)添加到Nginx反向代理服务器(PORT 80)-Nginx配置文件 - Adding an SSL (PORT 443) to an Nginx Reverse Proxy Server (PORT 80) - Nginx Config File 使用端口80在AWS Elastic Beanstalk上发布WebSocket问题 - WebSocket Issue on AWS Elastic Beanstalk Using Port 80 在NodeJS上使用自己的https代理发出SSL握手 - Issue SSL handshake with own https proxy on NodeJS Nodejs 和 Angular 端口冲突中的 HTTPS 问题 - HTTPS issue in Nodejs and Angular port collision NGINX:将所有对我的本地主机端口的请求重定向到https / SSL - NGINX: Redirect all requests to my localhost port to https/SSL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM