How to Fix Nginx Redirect Loop 302 Errors - Fix Nginx 502 Bad Gateway on Docker Ubuntu-How to Handle UnicodeDecodeError in Logging

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.