@Campbell
The CSS guy!
I love CSS!
Nothing here yet.
No blogs yet.
I think the simplest thing is to do the following : Use Nginx to forward all *.logos.com requests to your Node.js app.Then use express.vhost to handle requests appropriately. Sample Code using Express vHost : var http = require('http') var vhost = require('vhost') // create main app var app = connect() app.use(vhost('mail.example.com', function (req, res) { // handle req + res belonging to mail.example.com res.setHeader('Content-Type', 'text/plain') res.end('hello from mail!') })) // an external api server in any framework var httpServer = http.createServer(function (req, res) { res.setHeader('Content-Type', 'text/plain') res.end('hello from the api!') }) app.use(vhost('api.example.com', function (req, res) { // handle req + res belonging to api.example.com // pass the request to a standard Node.js HTTP server httpServer.emit('request', req, res) })) app.listen(3000);
Thanks Sean! I have 2GB of RAM now and it's working without any problem. But I am expecting spike in traffic and more concurrent users soon. That's why I am little concerned. But I guess I can start with 4GB and see if I need more.