Thanks, Ryan. I thought vhost was an ad hoc addon. Now I see that its built in and exactly what I need. Nice and simple! On Feb 4, 2012 10:45 AM, "Ryan Schmidt" <google-2...@ryandesign.com> wrote:
> > On Feb 4, 2012, at 11:25, C. Mundi wrote: > > > I'm looking for the simplest recommended (preferably already built in) > way to have a single node instance route requests and manage sessions based > on the host named in the HTTP headers. > > > > So for example two virtual hostnames both resolve to the IP address of > my physical server which is running a single Express app listening on port > 80 and that single app serves pages and manages sessions based on the > virtual hostname. > > > > I'm looking for the simplest solution, not the most clever or capable at > this point in time. > > https://github.com/visionmedia/express/tree/master/examples/vhost > > > -- > 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 nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en