I come from the LAMP world so I am a bit confused on how to serve an ExpressJS application from my webserver.
I have multiple Apache virtualhosts that all point to various directories and specify various domain names. They all have configuration files in /etc/apache2/sites-available/
on my Ubuntu.
Anyway, I installed an ExpressJS instance using node, it sits in a directory in my /var/www/
directory, with my other web (Apache) stuff.
How do I serve it with a specific domain name without having to do IP:3000
(which doesn't even work because of my firewall). I see this: Apache HTTPD: URL resolution for a virtual host with proxies and directory alias, but I'm not sure that it is correct because I read elsewhere you want to avoid Apache hosts for Node as it disrupts its performance? Just looking for the best answer here.
It should use port 80 and be mapped to a specific domain, while minimizing performance impact. I'm also not sure what to point it to exactly in the node files, I'm guessing the /var/www/nodeapp/node_modules/express/index.js
file?
Thanks for your gracious assistance!