Guide, How to host multiple meteor apps on a single vps server

Meteor

http://julian.io/how-do-i-host-multiple-meteor-apps-on-one-digitalocean-droplet/

Important:

Apparently force-ssl and an NGINX proxy are either redundant or if used together can cause too many redirects. This was not well-documented in the materials I was able to locate.

Step 1. Remove force-ssl from your meteor project.

Step 2. Create .conf file for domains

http://stackoverflow.com/questions/26936433/deploying-meteor-to-production-with-meteor-up-ssl-and-nginx

Step 3. Set proper cypher

https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html

 

ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;

 

ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';

 

Step 4. Set proper forward from port 80 to port 443

 

Step 5. Upload certs and copy to proper location as specified in .conf

 

For the next site.

Run:

mup setup

mup deploy

 

References:

http://code.krister.ee/hosting-multiple-instances-of-meteor-on-digitalocean/

http://jasonmciver.com/deploy-with-mup/

http://serverfault.com/questions/67316/in-nginx-how-can-i-rewrite-all-http-requests-to-https-while-maintaining-sub-dom