Run LAMP Stack on main domain, Run Node.JS on subdomain, same droplet

January 24, 2016 808 views
LAMP Stack DNS Node.js Deployment Configuration Management

I want to run a basic LAMP stack at mydomain.com, and run a Node.JS app on sub.mydomain.com, on the same droplet. I have them both installed.

(users shouldn't have to put a port number at the end, they both need port 80)

How can I do that?

1 Answer

Some tinkering with Apache will be needed. Take a look here: http://www.chrisshiplet.com/2013/how-to-use-node-js-with-apache-on-port-80/

This should work.

Have another answer? Share your knowledge.