IT Infrastructure · TROUBLESHOOTING

IIS 502 Bad Gateway Troubleshooting Guide

Troubleshoot IIS 502 errors by checking application pools, reverse proxy settings, backend services, bindings and Windows event logs.

Practical Runbook6 StepsIssues → Solutions → Recommendations
!Issue

Troubleshoot IIS 502 errors by checking application pools, reverse proxy settings, backend services, bindings and Windows event logs.

Solution

01 Identify the 502 variant

Recommendations

06 Validate application health Retest the original URL and confirm successful responses under the expected load.

Review the IIS substatus and detailed error information. Different 502 codes point to different backend or proxy conditions.

01

Identify the 502 variant

02

Check application pool

Verify the application pool is running and review rapid-fail protection, identity permissions and recent restarts.

03

Check backend connectivity

If IIS proxies to another service, test the backend address and port directly from the IIS server.

04

Check bindings and certificates

Confirm host headers, ports and TLS certificates match the intended site configuration.

05

Review logs

Use IIS logs, Failed Request Tracing where enabled and Windows event logs to correlate the request failure.

06

Validate application health

Retest the original URL and confirm successful responses under the expected load.

Explore more TechRunbook guides

Continue with practical infrastructure troubleshooting, PowerShell scripts and operational runbooks.

Browse all articles →