how to put nodejs and apache in the same port 80

前端 未结 6 1189
执笔经年
执笔经年 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:41

    You can't. You have to run node.js on another port and then proxy requests through apache. You can do this using mod_proxy

    http://davybrion.com/blog/2012/01/hosting-a-node-js-site-through-apache/

提交回复
热议问题