c21xdx
V2EX  ›  问与答

有使用 nginx proxy manager 的吗?怎么反代 https

  •  
  •   c21xdx · Mar 8, 2023 · 2544 views
    This topic created in 1346 days ago, the information mentioned may be changed or developed.

    用 docker 部署的 nginx-proxy-manager ,添加了域名及域名证书,用这个域名反代 http 是可以的,但是反代 https 都是 502 Bad Gateway 。这个怎么搞?

    6 replies  •  2023-03-09 19:34:09 +08:00
    ttxhxz
    ttxhxz
    Mar 8, 2023
    1
    你访问的是 nginx-proxy-manager 的 https 端口吗
    c21xdx
    c21xdx
    OP
    Mar 8, 2023
    2
    nginx-proxy-manager 面板是一个 http 域名,登录后我在面板给域名 npm123.com 给申请了 LET 证书,然后用 https://npm123.com 这个域名去反代 https://go123.dev 这个域名,结果打开显示 502 Bad Gateway 。但如果反代的是 http://go123.dev ,是正常的。
    https://i.328888.xyz/2023/03/08/S2vut.jpeg
    设置
    https://i.328888.xyz/2023/03/08/S2LTA.jpeg
    c21xdx
    c21xdx
    OP
    Mar 8, 2023
    3
    @ttxhxz

    如上面回复
    c21xdx
    c21xdx
    OP
    Mar 9, 2023
    4
    没有耍这个的吗?
    SgtPepper
    SgtPepper
    Mar 9, 2023
    5
    不清楚,可以看下对你有没有借鉴意义
    https://www.v2ex.com/t/897994
    ttxhxz
    ttxhxz
    Mar 9, 2023
    6
    @c21xdx 所以你是 npm123.com:nginx-proxy-manager 的 https 端口去访问吗? nginx-proxy-manager 的 https 端口和 http 端口你都设置的什么?设置的 443 和 80 ?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   926 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:38 · PVG 05:38 · LAX 13:38 · JFK 16:38
    ♥ Do have faith in what you're doing.