search

Home  >  Q&A  >  body text

node.js - nginx 配置 https 502错误

怪我咯怪我咯2786 days ago309

reply all(1)I'll reply

  • 阿神

    阿神2017-04-17 15:59:07

    nginx cannot connect to your nodejs program. Can you netstat -nptl see if it's listening?

    There is no problem with this configuration locally

    Then what’s the problem?

    PS:

    proxy_set_header Connection "";

    What do you want to do?

    PPS: nodejs is local, no need to use HTTPS anymore. There is no point in encrypting and then decrypting it with nginx, it is just a waste of CPU.

    reply
    0
  • Cancelreply