Node.js apps and wordpress on the same vps

Posted by Msencenb on Server Fault See other posts from Server Fault or by Msencenb
Published on 2012-10-28T17:59:03Z Indexed on 2012/10/28 23:06 UTC
Read the original article Hit count: 246

Filed under:
|
|
|

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?

© Server Fault or respective owner

Related posts about apache2

Related posts about nginx