How to host multiple web applications with different backend on one dedicated server?

It is planned to develop several independent from each other web applications that will use on the side of the backend and different technologies, for example:
The app, which will be based on Node.JS;
Is the app or website, which will be based on PHP;

Regular shared hosting is not suitable, since it is impossible to deploy Node.JS so the bet is made on a dedicated server with one IP address.
I understand PHP to work you need to install Apache, but how it will work with Node, will not be any conflicts?
How to use PHP and Node.JS on a single server TOGETHER so that it could accommodate different projects?
April 7th 20 at 10:54
2 answers
April 7th 20 at 10:56
Now using nginx as frontend. For projects in php -- Apache or php-fpm as a backend. You can still see in nginx unit -- the application server from nginx developers who can simultaneously python, php, go, ruby, nodejs and other.
For the front, I also use Apache: difference in static content - no.
The main thing is not to forget to remove the handle of the hook script from the folder with static (html,css,js,fonts,etc). - Annamarie42 commented on April 7th 20 at 10:59
April 7th 20 at 10:58
(Directive mount URI to the desired host/port in apache)
I understand that it is possible to use nginx as alternative to Apache. What would be good for this issue? - jeanie_Hermann commented on April 7th 20 at 11:01
@jeanie_Hermann, I always yuzayu Apache.
The speed is there - the same as for nginx, but opportunities - much more. - Annamarie42 commented on April 7th 20 at 11:04

Find more questions by tags Hosting