Nodejs www mac os x server

时间:2012-09-07 08:08:56

标签: macos apache node.js dns osx-server

我正在尝试让node.js在mac os x服务器上运行。使用服务器应用程序,在这里我设置example.com来监听端口80上的所有ip并从文件夹中读取,example.com有一条A记录指向我的服务器的静态IP。这适用于apache。

我已将node.js设置为在我的本地IP上侦听端口8080,但是当我转到example.com:8080时,我得到404.

}).listen(8080, '10.100.100.15');

Apache也正在监听该IP,但据我所知,仅在端口80上。 任何想法,链接和赞赏。

1 个答案:

答案 0 :(得分:1)

路由器错过了8080的转发器。