From 1110e95e4914bec23da9196fd873907043e9a548 Mon Sep 17 00:00:00 2001 From: OpenClaw Agent Date: Fri, 13 Mar 2026 15:18:45 +0000 Subject: [PATCH] fix: add root routes for index.html (Apache strips base prefix on proxy) --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')); });