hi guys,
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:
server {
listen port;
server_name name;
passenger_env_var ROOT URL http://myroot.com;
location ~/test{
}
}
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
1 Like
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
server {
server_name full.url.example.com;
root <directory where I copied meteor build output>/bundle/public;
access_log logs/nginx/full.url.example.access.log main;
passenger_enabled on;
passenger_app_type node;
passenger_startup_file main.js;
passenger_nodejs /Users/jhm/.meteor/packages/meteor-tool/1.4.1_1/mt-os.osx.x86_64/dev_bundle/bin/node;
passenger_env_var ROOT_URL http://full.url.example.com;
passenger_env_var MAIL_URL smtp://user:pass@mail.provide.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
1 Like
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.