【问题标题】:after binding site ssl issues ERR_CONNECTION_REFUSED, why?绑定站点 ssl 后出现 ERR_CONNECTION_REFUSED,为什么?
【发布时间】:2016-11-02 10:06:02
【问题描述】:

在 startssl.com 上,我收到了证书。 Nginx 设置如下:

server {
   listen 80;
   server_name ***;
    location / {
        root /usr/html/***;
        index  index.html index.htm;
    }
 return 301 https://***$request_uri;
}

server {
   listen 433 ssl;
   server_name ***;

    ssl_certificate      /etc/ssl/nginx/***.pem;
    ssl_certificate_key  /etc/ssl/nginx/***.key;

    location / {
        root /usr/html/***;
        index  index.html index.htm;
    }

}

当您尝试访问浏览器问题的站点时:ERR_CONNECTION_REFUSED

我的问题是什么?

如何解决我的问题?

【问题讨论】:

  • 这不是原因,但您不应该监听默认的 443 端口(不是 433)吗?
  • 你说得对,非常感谢!
  • 很高兴! :)

标签: ssl nginx web https debian


【解决方案1】:

设置433端口,应该是443!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-05-20
    • 2015-01-08
    • 1970-01-01
    • 1970-01-01
    • 2012-06-09
    • 1970-01-01
    • 2016-04-03
    • 2018-09-30
    相关资源
    最近更新 更多