【发布时间】:2015-10-11 07:19:38
【问题描述】:
我已经在 node.js 中创建了我的网站。我为不同的模块使用不同的端口。
喜欢
http://localhost:5555/ 这是给管理员的,
http://localhost:5050/ 这是用于客户端访问的。'
我正在使用Digitalocean Ubuntu 服务器,并且我从Godaddy 购买了域。
我想在不同的端口上设置不同的域。
喜欢
http://localhost:5555/ 应该是“http://admin.example.com”。
http://localhost:5050/ 应该是“http://example.com”。
我在 Ubuntu 中尝试过使用 nginx,但没有任何用处。
请帮帮我。提前致谢。
【问题讨论】:
-
我在 Ubuntu 上使用 nginx 进行了此操作,因此没有遇到任何问题。你遇到了什么问题?
标签: node.js nginx dns port digital-ocean