I have four node applications built using the express framework. I have one domain name expressapps.com, and I would like each of the three apps to run within different subdirectories. I would like the fourth app to run on the home page (and possibly delegate the other apps).
I want all of the apps to be able to be detached from the domain name and moved to a different one, not dependent on each other in any way, not to share cookies or session data. I would also like for the apps, on a node level to be running in different processes from each other. I'm guessing that the apps would all have to be on the same server, but is it possible to have them on different?
The reason I would do this rather then use sub-domians is because of ssl, I only want to have to purchase one certificate.
Is this possible? Is there anything out there to aid this configuration?
The most elegant way would be with subdomains, not ports.
You might try to do sub-domains:
http://expressapps.com
http://app-one.expressapps.com
http://app-two.expressapps.com
http://app-three.expressapps.com
The benefit here, being that you can host each app in a separate place, maybe even on different servers or with different hosting services, and then just change your DNS settings to point those sub-domains to the appropriate places. Make sense?