Pcornel
Browse topics
Options
Recent
Favorites
Web Infrastructure · Technical reference

IIS

Direct answer

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.

When to use this

Use this when hosting websites on IIS or when a site returns errors, wrong content or TLS problems.

First 30 seconds

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.

Operational verification

request → HTTP.sys → binding → site → app pool → content/app

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Microsoft Windows
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformMicrosoft Windows
Key commandGet-Service W3SVC, WAS | Select-Object Name, Status
Scope / prerequisiteUse this when hosting websites on IIS or when a site returns errors, wrong content or TLS problems.
What next?3 suggested next steps
Child topics (this level)9
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic IIS Architecture

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 Websites

An 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 Bindings

IIS bindings define how requests reach a site: protocol (http or https), IP address, port and host name.

Subtopic Application Pools

An 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 Directories

A 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 Authentication

IIS 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 Certificates

IIS TLS certificates are imported into the computer's Personal store and selected on an HTTPS binding.

Subtopic Logging

IIS 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 Troubleshooting

Troubleshoot 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.

Key points
  • Status + substatus code narrows the cause.
  • App pool identity needs file permissions.
  • Bindings decide which site answers.
Key checks
  • Get-Website — sites, state, bindings
  • Get-IISAppPool — application pools and state
  • Get-WebBinding — bindings
  • Get-ChildItem IIS:\SslBindings — certificate bindings
  • Get-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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceImportant terms & boundaries2 sections · depth on demand

Logs

ItemLocation
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:

ComponentRole
HTTP.sysKernel-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
W3SVCReads the configuration and keeps HTTP.sys up to date
Application pool / w3wp.exeWorker process that runs the site's modules and application code under the pool identity
ModulesAuthentication, 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 -IncludeManagementTools plus 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.config and app pool settings.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docMicrosoft Windows current

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%
Terminology layer

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.

Aliases that resolve here
iisinternet information servicesw3svc
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

StatusUsual cause
401.1 / 401.2Logon failed (bad credentials) / authentication configuration problem
403.14Directory listing denied — no default document
404.0File not found — or the request reached a different site than intended
500.19Invalid applicationHost.config or web.config (often a section locked at server level or a missing module such as URL Rewrite)
500.21Module not recognised (handler references a module that is not installed)
500.30 / 502.5ASP.NET Core app failed to start (in-process / out-of-process)
503.0Application pool stopped or disabled — often rapid-fail protection after repeated crashes
503.2Concurrent 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.

Confirmation

Confirm action

Continue?