Fix Nginx Redirect Loop Caused by Rewrite Rules - Fix Git Refusing to Merge Unrelated Histories-Docker Compose Env File Not Being Read: Fixes

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.