为node.jsconfiguration子域

我得到了快递node.js网站的Ubuntu服务器。 我已经可以请求它了:

  • 通过ip:像那样: http://11.22.334.44 : http://11.22.334.44
  • 和域:像这样: http://my-domain.com : http://my-domain.com

我想要configuration为通过子域请求:像这样: http://my-subdomain.my-domain.com : http://my-subdomain.my-domain.com 。 我该怎么办? 我应该安装dns吗? 怎么做?

只需安装nginx并将其configuration为node.js的前端服务器即可 。 在nginxconfiguration:遍地而不是domain.com粘贴subdomain.domain.com 。 而已。