Node.js apps and wordpress on the same vps
- by Msencenb
So currently my linode (ubuntu 11.10) serves up three node.js apps for me using connect's vhost middleware listening on port 80. Here is an example of how vhost sets up a domain:
var portfolio = require('./bootstrap-portfolio/lib/app.js');
var server = express();
server.use(express.vhost('sencedev.com',portfolio));
server.use(express.vhost('www.sencedev.com',portfolio));
server.listen(80);
However I would now like to add a wordpress installation to my vps as well. In the past for me this has meant a traditional apache installation; however I'm a bit unsure of how node.js + a different webserver (apache or nginx) should interact.
Any thoughts on how I should approach hosting wordpress + node.js on the same box?