684 B
684 B
1. Reproduce And Diagnose
- 1.1 Reproduce the 404 for
/videos,/podcast, and/aboutin the deployed nginx/Docker setup - 1.2 Confirm the build output includes
site/dist/videos/index.html,site/dist/podcast/index.html, andsite/dist/about/index.html
2. Fix Static Serving
- 2.1 Update nginx config to serve directory index pages for non-trailing-slash requests (e.g., add
$uri/index.htmltotry_files) - 2.2 Rebuild the Docker image and restart the container
3. Verify
- 3.1 Verify
/videos,/podcast, and/aboutreturn 200 (both with and without trailing slash) - 3.2 Verify the fix does not mask real 404s for unknown paths