This was challenging for me too, the way I learned to do it was: - install Node and get your app running at the ip:port address - use node-http-proxy <https://github.com/nodejitsu/node-http-proxy> to set route your subdomain to this port - launch both the app and http-proxy using forever<https://github.com/nodejitsu/forever>, so they run in the background
I made a loader for http-proxy that lets you store your settings in a config file: https://github.com/dylanized/http-proxy-loader Feel free to email me if you need a hand. There may be a better way to do this - in fact, I hope there is! :) - dylan in santiago On Fri, Aug 16, 2013 at 9:15 AM, pixel67 <[email protected]> wrote: > I'm trying to figure this out as well, I have a VPS that I set up for node > hosting, I'm using NGINX. > I found this article just now while searching about `configuring server to > host node application` > http://dailyjs.com/2010/03/15/hosting-nodejs-apps/ > hope it helps > > On Sunday, September 12, 2010 10:29:00 AM UTC-4, Mark Nutter wrote: >> >> I'm just getting into node.js and I haven't been able to find any >> guides on how to actually setup a node.js server on a linux server, in >> my case a slicehost slice. I'm no sysadmin expert, I just used >> passenger/apache and the guides on Slicehost to get my rails apps up >> and running. So how would I get an example node.js app running and >> available on a subdomain, accessible from the web? Is this done in >> apache? Or are there other ways to get subdomains or domains to >> listen to port 8000. I just want to get an example up and running >> somewhere other than my local machine. Big time noob here, some >> guidance would be very appreciated. > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > 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 post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: 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 post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- 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]. For more options, visit https://groups.google.com/groups/opt_out.
