Meteor Deployed显示默认Nginx页面

时间:2015-03-23 08:26:52

标签: node.js nginx meteor telescope

我使用本教程中显示的类似设置成功部署了我的meteor应用程序:

http://code.krister.ee/hosting-multiple-instances-of-meteor-on-digitalocean/

当我访问URL时,默认的nginx显示出来。我尝试使用不同的网址,例如demo.example.com,但没有任何内容加载。

我甚至尝试将端口从3001更改为80,而不是mup.json文件中指定的端口

我检查了启用了nginx / sites的文件,但只有default,因此我按照教程中的说明创建了一个新文件。

我仍然无法通过我的IP或域来加载我的应用。我做错了吗?

1 个答案:

答案 0 :(得分:1)

nginx未指向正确的位置。 Telescope的默认端口是3000。您是否尝试过设置nginx配置文件以查找http://localhost:3000而不是像教程建议的那样在端口3001上查找?

location / {
    proxy_pass http://localhost:3000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection ‘upgrade’;
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
}
相关问题