diff --git a/server.js b/server.js index cc4b8b9..da6467e 100644 --- a/server.js +++ b/server.js @@ -84,7 +84,8 @@ app.delete(['/api/text', BASE + '/api/text'], async (req, res) => { }); // ── Serve index.html ────────────────────────────────────────────────────── -app.get([BASE, BASE + '/', BASE + '/index.html'], (req, res) => { +// Apache strips the BASE prefix before proxying, so handle both forms +app.get(['/', '/index.html', BASE, BASE + '/', BASE + '/index.html'], (req, res) => { res.sendFile(path.join(__dirname, 'index.html')); });