i need some advices to host multiple meteor app with passenger. First. Is that possibile?..i tried with nginx config file but without success. Reading over the internet i found that i maybe possibile to host multiple app as follow:
passenger_env_var ROOT URL http://myroot.com;
i tried a lot of stuff in location section. in the case of static pages it works as expected but if i try to start a meteor app down here i got errors.
thanks in advance
This is interesting also for me. Hopefully someone will tell us something
I am hosting several Meteor sites with Passenger behind nginx. Each entry looks something like this
root <directory where I copied meteor build output>/bundle/public;
access_log logs/nginx/full.url.example.access.log main;
passenger_env_var ROOT_URL http://full.url.example.com;
passenger_env_var MAIL_URL smtp://user:email@example.com/;
passenger_env_var MONGO_URL mongodb://192.168.1.189:27017/<database>;
passenger_env_var MONGO_OPLOG_URL mongodb://192.168.1.189:27017/local;
You need to adjust the paths and IP addresses
hey thanks for your reply…i have two questions :
1 - if i get your point you are using separate conf file and subdomain?
2 - is possible to do that with location stuff?and with that i mean…using a unique config file?
I use uniq config files per domain in a config sub-dir that nginx reads. No location stuff.