Fix 404: redirect /ppt-tool (no slash) to /ppt-tool/ in Apache
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 <noreply@anthropic.com>
This commit is contained in:
parent
f2b65df132
commit
8960267c3c
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
<Directory /var/www/html>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue