nginx.conf troubleshooting
- Nginx: connect() to php-fpm.sock failed (13: Permission denied)
- Nginx: connection reset by peer while reading upstream
- Nginx downloads PHP files instead of executing them
- Nginx: 403 Forbidden
- Nginx: 502 Bad Gateway
- Nginx: 504 Gateway Timeout
- Nginx: upstream sent too big header while reading response header
Diagnose and fix common Nginx errors: 502 Bad Gateway, 403 Forbidden, 504 Gateway Timeout, PHP-FPM socket failures, and upstream header issues.