What is the benefit of using NginX for Node.js?

前端 未结 3 1451
生来不讨喜
生来不讨喜 2021-02-05 03:16

From what I understand Node.js doesnt need NginX to work as a http server (or a websockets server or any server for that matter), but I keep reading about how to use NginX inste

3条回答
  •  醉酒成梦
    2021-02-05 03:44

    But be prepared: nginx don't support http 1.1 while talking to backend so features like keep-alive or websockets won't work if you put node behind the nginx.

    UPD: see nginx 1.2.0 - socket.io - HTTP/1.1 - Proxy websocket connections for more up-to-date info.

提交回复
热议问题