V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ThitBiu
V2EX  ›  SSL

架设了负载均衡,配置 SSL 无法访问,求大神

  •  
  •   ThitBiu · 2019-12-18 15:50:55 +08:00 · 2324 次点击
    这是一个创建于 1563 天前的主题,其中的信息可能已经有所发展或是发生改变。

    架设了负载均衡,然后在宝塔配置了 SSL 证书,访问域名不会跳转到 443 端口。不知道哪没设置对,访问提示错误: Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. Apache Server at SSL.网址.com Port 80

    5 条回复    2019-12-18 22:32:50 +08:00
    ThitBiu
        1
    ThitBiu  
    OP
       2019-12-18 15:51:51 +08:00
    端口 443 已经放通,还是不行
    xiri
        2
    xiri  
       2019-12-18 16:02:18 +08:00 via Android   ❤️ 1
    这报错不是说的很清楚了吗,你正在使用 http 协议访问一个 https 端口。
    比如通过下面这样的链接访问
    http://domain:443/xxx
    手动指定了 http 协议,但是又指定通过绑定了 https 服务的 443 端口访问
    Buges
        3
    Buges  
       2019-12-18 16:12:20 +08:00 via Android   ❤️ 1
    看样子你是在 80 端口起了 http 协议。
    Buges
        4
    Buges  
       2019-12-18 16:13:02 +08:00 via Android
    打错了,在 80 端口起了 https 协议
    ThitBiu
        5
    ThitBiu  
    OP
       2019-12-18 22:32:50 +08:00
    终于搞定了。。。原来用腾讯云负载均衡设置了证书。后端服务器不用设置证书
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2751 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:35 · PVG 20:35 · LAX 05:35 · JFK 08:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.