Do not conflict with Apache and node.js at the same time installed ?

Won't conflict Apache node and if to install them on Ubuntu 14 ? Noda as the server is not in use, use only for some of its additions (lessc and others)
September 26th 19 at 11:48
2 answers
September 26th 19 at 11:50
No
September 26th 19 at 11:52
Do not conflict, if you sit on different ports.
Often do so - hang node on port 3000, and prokidyvaya calls on it via an external frontend type to nginx, which listens to the standard 80 port. In principle, it is possible to proxy node and Apache, but not sure that's a good idea - Apache is not the most nimble thing. If you want to have multiple sites on different platforms on a single server, the best choice would be to put a frontend nginx and use apache, and node.js.
And sites in php you can do without Apache to run directly through nginx. Deal with it, will be a good profit.
please tell me , maybe there are some articles on this topic? - Cade.DuBuq commented on September 26th 19 at 11:55
and very noob question, how to install them on different ports? - Cade.DuBuq commented on September 26th 19 at 11:58
in the server port explicitly in the code set, usually something like .listen(3000) in the place where you create the HttpServer. This setting can be carried into an environment variable. It depends on the framework and the programmer decision. In apache and nginx the port is configured in the config, but there is usually 80.
Something to read - Google "apache + node.js", "nginx + node.js".
Read WEB Development project Node.JS (the second part), Node.JS from A to z - Gustave.Fay commented on September 26th 19 at 12:01
Please do not pay attention to what you Noda as the web server is not in use. So the correct answer is the answer . Everything I said above, is that if node.js running the web server. - Gustave.Fay commented on September 26th 19 at 12:04

Find more questions by tags ApacheNode.jsPHPUbuntu