Use this when hosting websites on IIS or when a site returns errors, wrong content or TLS problems.
IIS
IIS (Internet Information Services) is the Windows web server. It hosts websites and applications in application pools, with bindings, authentication, TLS certificates, logging and modules configured per site.
1. Site and pool started?
2. Binding for host/port/certificate.
3. Request log status codes (with substatus).
4. Failed Request Tracing for errors.
5. App pool identity permissions.
request → HTTP.sys → binding → site → app pool → content/app
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Get-Service W3SVC, WAS | Select-Object Name, StatusVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
# Service and configuration health
Get-Service W3SVC, WAS | Select-Object Name, Status
Get-IISSite | Select-Object Name, State, Bindings
Get-IISAppPool | Select-Object Name, State, ManagedRuntimeVersion, ManagedPipelineMode
# What HTTP.sys is listening for, and which certificates are bound
netsh http show servicestate view=requestq | Select-String -Pattern 'Request queue name|URL'
netsh http show sslcert
# Local request to a specific site (Host header)
Invoke-WebRequest -Uri http://localhost/ -Headers @{Host='intranet.corp.example.com'} -UseBasicParsing | Select-Object StatusCode
# Recent errors
Get-ChildItem $env:SystemRoot\System32\LogFiles\HTTPERR | Sort-Object LastWriteTime | Select-Object -Last 1 | Get-Content -Tail 20
Get-WinEvent -LogName System -MaxEvents 50 | Where-Object ProviderName -in 'WAS','Microsoft-Windows-WAS' | Select-Object TimeCreated, Id, Message
Step 2 Troubleshooting Narrow the fault
1. Reproduce with the exact host name and note the full status and substatus from the IIS log.
2. No IIS log entry → look in HTTPERR (binding, certificate, queue) and at the network/load balancer.
3. 503 → check the app pool state and WAS events (identity password, rapid-fail, crashing module).
4. 500.19/500.21 → fix configuration or install the missing module.
5. 500 from the app → enable Failed Request Tracing for that status code and read the trace.
Step 3 Failure boundaries Narrow the fault
- HTTP.sys — binding, certificate, queue: errors in HTTPERR, nothing in the site log.
- WAS/app pool — pool stopped, identity cannot log on, rapid-fail: 503 and WAS events in the System log.
- Configuration — 500.19 with the exact file and line.
- Module/handler — 500.21, 404.3 (no MIME map/handler), missing runtime (ASP.NET Core Hosting Bundle).
- Application — 500.x from code; application logs, stdout logs for ASP.NET Core, Failed Request Tracing.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
IIS architecture has HTTP.sys in the kernel receiving requests, the Windows Process Activation Service and W3SVC managing worker processes, and application pools with w3wp.exe running sites and modules.
Subtopic WebsitesAn IIS website is a top-level site with its own bindings, physical path, application pool and settings, created in IIS Manager or with New-IISSite or New-Website.
Subtopic BindingsIIS bindings define how requests reach a site: protocol (http or https), IP address, port and host name.
Subtopic Application PoolsAn IIS application pool is a worker process (w3wp.exe) with its own identity, .NET CLR version and pipeline mode that runs one or more sites, isolating them so one crashing app does not take down others.
Subtopic Virtual DirectoriesA virtual directory maps a URL path in an IIS site to a physical folder elsewhere, such as /files to D:\Shared, without making it a separate application.
Subtopic AuthenticationIIS authentication sets how users prove identity to a site: Anonymous, Windows (Kerberos or NTLM), Basic over TLS, client certificates, or forms and OAuth handled by the application.
Subtopic TLS CertificatesIIS TLS certificates are imported into the computer's Personal store and selected on an HTTPS binding.
Subtopic LoggingIIS logging writes one line per request with time, client IP, URL, status, substatus and time-taken to C:\inetpub\logs\LogFiles, in W3C format by default.
Subtopic IIS TroubleshootingTroubleshoot IIS with the HTTP status and substatus code, IIS logs in C:\inetpub\logs, Failed Request Tracing, application pool state and identity permissions, bindings, certificates and the Application event log.
- Status + substatus code narrows the cause.
- App pool identity needs file permissions.
- Bindings decide which site answers.
Get-Website— sites, state, bindingsGet-IISAppPool— application pools and stateGet-WebBinding— bindingsGet-ChildItem IIS:\SslBindings— certificate bindingsGet-Content C:\inetpub\logs\LogFiles\W3SVC<id>\*.log -Tail 20— request log
ReferenceWhat it is2 sections · depth on demand
Direct Answer
IIS is the Windows Server web server: the kernel driver HTTP.sys accepts connections and TLS, matches the site binding, and queues the request for an application pool worker process (w3wp.exe) that runs the application. Configuration lives in applicationHost.config and per-site web.config. Read status and substatus from the IIS log; requests that never reach a site are in the HTTPERR log.
Scope and canonical references
This Topic is the IIS overview; details live in its children.
- Parts: IIS Architecture, Websites, Bindings, Application Pools, Virtual Directories, Authentication, TLS Certificates, Logging, IIS Troubleshooting.
- HTTP concepts: HTTP; load balancing in front of IIS: HTTP Load Balancing.
- Windows Server platform: Windows Domain.
ReferenceImportant terms & boundaries2 sections · depth on demand
Logs
| Item | Location |
|---|---|
| Access logs | %SystemDrive%\inetpub\logs\LogFiles\W3SVC<id> |
| Failed request tracing | %SystemDrive%\inetpub\logs\FailedReqLogFiles |
| HTTP.sys errors | %SystemRoot%\System32\LogFiles\HTTPERR |
In depth
IIS (Internet Information Services) is the web server built into Windows Server. Its request path has a kernel and a user-mode part:
| Component | Role |
|---|---|
| HTTP.sys | Kernel-mode listener: accepts connections, terminates TLS, matches the URL to a site binding, queues the request; also serves cached responses and writes the HTTPERR log |
| WAS (Windows Process Activation Service) | Starts and stops worker processes, applies application pool settings |
| W3SVC | Reads the configuration and keeps HTTP.sys up to date |
| Application pool / w3wp.exe | Worker process that runs the site's modules and application code under the pool identity |
| Modules | Authentication, static files, compression, URL Rewrite, ASP.NET, ASP.NET Core Module (ANCM), FastCGI for PHP |
Configuration
Server-wide configuration lives in %windir%\System32\inetsrv\config\applicationHost.config (sites, bindings, pools, defaults). Each site or application can override allowed sections in its own web.config. A syntax error in either file stops the affected site with 500.19.
Hierarchy
Site → applications → virtual directories. Each application belongs to one application pool. See Websites, Bindings, Application Pools, Virtual Directories.
Management tools
IIS Manager (GUI), PowerShell modules IISAdministration (Get-IISSite, Get-IISAppPool, New-IISSiteBinding) and the older WebAdministration (Get-Website, IIS: drive), and appcmd.exe in %windir%\System32\inetsrv. Back up configuration before changes with appcmd add backup <name>.
Hosting other runtimes
ASP.NET Core apps run behind IIS through the ASP.NET Core Module (in-process or out-of-process); PHP runs through FastCGI; Node.js or Java backends are usually reverse-proxied with Application Request Routing and URL Rewrite.
ReferenceConfiguration & state2 sections · depth on demand
Commands
Install-WindowsFeature Web-Server -IncludeManagementTools
Import-Module WebAdministration
Get-Website ; Get-IISAppPool
New-Website -Name app -Port 80 -HostHeader app.example.com -PhysicalPath D:\sites\app
iisreset /status
Documented example, not captured output. Logs: C:\inetpub\logs\LogFiles\W3SVC<id>\ (status and substatus codes like 401.2, 500.19) and Failed Request Tracing for detailed errors.
Lifecycle and ownership
- Install:
Install-WindowsFeature Web-Server -IncludeManagementToolsplus only the role services you need (each module is attack surface). - Configure as code: export or script sites, bindings and pools; use shared configuration or DSC for farms.
- Certificates: track expiry, automate renewal and binding updates (see TLS Certificates).
- Patching: IIS is patched through Windows Update; restart only the affected pools or use rolling node restarts behind a load balancer.
- Logs: move logs off the system drive and clean them up (Logging).
- Ownership: platform team owns server configuration; application teams own their
web.configand app pool settings.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IIS. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/iis/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Deep reference
Healthy vs suspicious evidence
Output interpretation
| Status | Usual cause |
|---|---|
| 401.1 / 401.2 | Logon failed (bad credentials) / authentication configuration problem |
| 403.14 | Directory listing denied — no default document |
| 404.0 | File not found — or the request reached a different site than intended |
| 500.19 | Invalid applicationHost.config or web.config (often a section locked at server level or a missing module such as URL Rewrite) |
| 500.21 | Module not recognised (handler references a module that is not installed) |
| 500.30 / 502.5 | ASP.NET Core app failed to start (in-process / out-of-process) |
| 503.0 | Application pool stopped or disabled — often rapid-fail protection after repeated crashes |
| 503.2 | Concurrent request limit exceeded |
HTTPERR entries (Connection_Dropped, QueueFull, AppOffline) | Request failed in HTTP.sys before reaching the worker process |
The full code including substatus (sc-status, sc-substatus, sc-win32-status) is in the IIS log; browsers often show only the main code.