Fix 'Git Remote Origin Already Exists' When Updating Remote URL - Fix Cloudflare Error 521 After a Server Update-Fix Nginx Redirect Loop Issues

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