How to set up Apache ProxyPass to preserve Express routes
In my Apache config im forwarding all traffic on /node to port 3000 , where the Express server is listening. <IfModule mod_proxy.c> ProxyRequests Off ProxyPass /node http://localhost:3000/ </IfModule> The Express app looks like this: var express = require('express'); var app = express(); var router = express.Router(); router.route('/route/:id').get(function (req, res) { res.json({ description: 'Welcome to a route with an ID' }); }); router.route('/route').get(function (req, res) { res.json({ description: 'Welcome to the normal route' }); }); router.route('/').get(function (req, res) { res.json