
Possiamo configurare Apache come server proxy HTTP per gestire un'app in Node.js.
La configurazione del proxy va inserita nel blocco VirtualHost:
<VirtualHost *:80>
DocumentRoot /home/username/www
ServerName app.tld
ProxyRequests On
ProxyPass / http://localhost:3000/
</VirtualHost>
Il forward slash finale aggiunto all'URL di loopback è necessario affinché possiamo gestire le assets statiche se usiamo ExpressJS.