yuedingwangji
V2EX  ›  问与答

nginx 如何转发非 80 端口的 SSL 的

  •  
  •   yuedingwangji · Oct 17, 2017 · 3147 views
    This topic created in 3136 days ago, the information mentioned may be changed or developed.

    upstream 是 https 的,ssl 用的端口是 8443, nginx 做代理, 请问 nginx 该怎么配置呀, 我配置后打开提示 400 Bad Request

    The plain HTTP request was sent to HTTPS port nginx

    下面是我的配置 upstream lo_8443 { server 123.123.123.123:8443 weight=1 max_fails=2 fail_timeout=30s; } server { # Bind Port listen 8443; ssl on; ssl_certificate /home/crt/cert.pem; ssl_certificate_key /home/crt/cert.key;

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2353 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:08 · PVG 00:08 · LAX 09:08 · JFK 12:08
    ♥ Do have faith in what you're doing.