Meteor App仅出现在:Nginx中使用Ubuntu的3000

时间:2015-01-30 22:49:45

标签: ubuntu nginx meteor digital-ocean

我正在运行nginx的Ubuntu服务器上部署Meteor App(望远镜) - 我已经设置完成并正常工作但该网站只会显示我是否转到http://mysite.example:3000而不是mysite.example

我对Nginx很陌生,并尝试在网站中使用虚拟主机文件 - 可用&已启用网站的文件夹但我不认为这是可行的方法。

如何让我的应用程序显示在我的网站默认端口而不是:3000?

感谢您的指导!

1 个答案:

答案 0 :(得分:0)

这听起来可能是虚拟主机文件中的一些配置错误。你是否将所有要求传递给流星?

server {
  location / {
    proxy_pass http://localhost:3000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade; # allow websockets
    proxy_set_header Connection $connection_upgrade;
  }
}