I've heard of NGINX, but have no experience with it. Since it's an 
additional server, I can only assume that it would be an additional expense 
to get up and running with my VPS, so let me see if I can find a solution 
at no additional expense before I go down that road.

I noticed that Node uses a 'http' and 'https' module for its respective 
.createServer() method. Is it wise to run multiple apps off 1 Node process? 
Or do most VPS (using Digital Ocean) allow you to spin up multiple Node 
processes, each independent from another?

Using the aforementioned apps, if I ran:

*> node /hosts/www/app.js*
*> node /hosts/api/alpha/app.js*
*> node /nosts/api/beta/app.js*

in 3 separate terminal processes?

Correct me if I'm wrong, but I think someone said that I must have a unique 
endpoint per application. The PROTOCOL + DOMAIN + PORT = the endpoint. So 
if all these apps were running on, say 443 (PORT) and HTTPS (PROTOCOL), 
then I'd have to have a unique DOMAIN. That's fine for the www.domain.com 
app, but the 2 apps on api.domain.com that just have different starting 
paths (api.domain.com/alpha and api.domain.com/beta) probably can't be done 
that way. I'd have to have an Express app per the 
'https://api.domain.com:443' endpoint, and then it would have to read the 
url path and internally load the 'alpha' or 'beta' apps. And that's not too 
much of a problem if I'm right in all my assumptions. :)

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/47391c0f-8c96-483d-ada6-6bdc73d9c30a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to