how to put nodejs and apache in the same port 80

前端 未结 6 1194
执笔经年
执笔经年 2020-12-04 17:04

I have to put nodejs in port 80, but apache is already using it. How can I put both (nodejs and apache) on the same port 80? I need it because in my university all the ports

6条回答
  •  广开言路
    2020-12-04 17:26

    I usually use haproxy as the front-end in situations like that and have that proxy to the appropriate backend server. (Though making your node.js process a proxy server is a valid approach too depending on your needs).

提交回复
热议问题