meteorhacks / cluster

Clustering solution for Meteor with load balancing and service discovery
https://meteorhacks.com/cluster-a-different-kind-of-load-balancer-for-meteor.html
MIT License
632 stars 80 forks source link

cluster-ddp 404 when using sub path in ROOT_URL #60

Closed withinthefog closed 9 years ago

withinthefog commented 9 years ago

When using sub path in ROOT_URL(something like ROOT_URL=http://localhost:4000/sub/path/), cluster keep throwing 404 to the client.

Here is the startup script I use:

ROOT_URL=http://localhost:4000/my/serviceA \
  MONGO_URL=mongodb://localhost:27017/serviceA \
  MONGO_OPLOG_URL=mongodb://localhost:27017/local?authSource=admin \
  CLUSTER_DISCOVERY_URL=mongodb://localhost:27017/cluster \
  CLUSTER_SERVICE=serviceA \
  meteor -p 4000

And in the browser keep receiving this error:

POST http://localhost:4000/cluster-ddp/626f59f55e98dc5b08e1b782f6e819fce5207e23/bm/527/fjg85py9/xhr 404 (Not Found)

After remove the /my/serviceA from the ROOT_URL, everything works fine again.