Category: Programming

Run Apache and NodeJS on the same server. | Run NodeJS on Apache server

So to serve PHP and ExpressJS App on the same port we will be running ExpressJS on default port 80/443 as a reverse proxy server for the PHP Web App requests. A reverse proxy server is a server that handles the requests on behalf of the other server. So in our case, NodeJS will handle requests for the PHP server and forward them to the Apache server.