Fix Nginx HTTP to HTTPS Redirect Loop Error - Resolving Cloudflare 521 Errors-Cloudflare Origin Certificate Permission Denied: How to Fix

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