簡體   English   中英

流星NGinx錯誤網關

[英]Meteor NGinx Bad Gateway

他,

我正在使用NGinX在nodeJs上運行MeteorJS設置。 當我訪問該網站時,沒有任何問題。

Google嘗試訪問它時,沒有返回任何內容,我看到我的access.log讀取了錯誤的網關錯誤。

我已經嘗試過Spiderable和Lufrai的Spiderable版本,但這也無濟於事。 我的NGinX具有websocket活動,所以也不是。

有人可以指出我正確的方向嗎?

服務器塊

 server { listen 80; server_name $name; root $rootDir; passenger_enabled on; passenger_sticky_sessions on; } 

甚至PhantomJS也已安裝並且位於正確的路徑中。

嘗試將此位置塊添加到服務器塊:

server {
   listen 80;

   server_name $name;
   root $rootDir;

   passenger_enabled on;
   passenger_sticky_sessions on;

   location / {
        proxy_pass http://localhost:PORT;
        proxy_http_version 1.1;
   }
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM