From 8960267c3cbde370b9f337aa7c14d672be0d1f13 Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Thu, 19 Mar 2026 21:33:04 +0000 Subject: [PATCH] Fix 404: redirect /ppt-tool (no slash) to /ppt-tool/ in Apache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Next.js basePath redirects /ppt-tool/ → /ppt-tool (308), then Apache had no rule for the slash-less path. Added RedirectMatch to complete the loop back to /ppt-tool/. Co-Authored-By: Claude Sonnet 4.6 --- apache/deckforge.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apache/deckforge.conf b/apache/deckforge.conf index 2efaba0..e7bf2f0 100644 --- a/apache/deckforge.conf +++ b/apache/deckforge.conf @@ -59,6 +59,9 @@ ProxyPass /ppt-tool/ http://127.0.0.1:WEB_PORT/ppt-tool/ ProxyPassReverse /ppt-tool/ http://127.0.0.1:WEB_PORT/ppt-tool/ + # Redirect /ppt-tool (no trailing slash) → /ppt-tool/ to avoid 404 after Next.js 308 + RedirectMatch ^/ppt-tool$ /ppt-tool/ + # Root — serve /var/www/html/index.html (Google LB health check needs 200 on GET /) DocumentRoot /var/www/html