Fix PowerShell Port Already Allocated Error 0x80072746 - How to Resolve 502 Bad Gateway in IIS with PowerShell-Fixing Nginx 404 Errors for API Endpoints

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