简体   繁体   中英

Meteor NGinx Bad Gateway

He,

I'm running a MeteorJS setup on nodeJs with NGinX. When I'm visiting the website, There's nothing wrong.

When Google Tries to visit it, there is nothing returned and I see that my access.log reads a Bad Gateway error.

I've tried spiderable and lufrai's version of spiderable, but that didn't help either. My NGinX has websocket activity, so that ain't it either..

Could someone point me in the right direction?

Server block

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

Even PhantomJS is installed AND is in the right path.

Try adding this location block to the server block:

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;
   }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM