Pcornel
Browse topics
Options
Recent
Favorites
Web Infrastructure · Technical reference

Websites

Direct answer

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.

When to use this

Use this when creating or reviewing an IIS website.

First 30 seconds

1. Get-Website — state Started?

2. Physical path exists and readable.

3. Default document/directory settings.

4. Logs.

5. Test URL.

Operational verification

site → bindings → physical path → app

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • All sites in the DefaultAppPool.
  • App pools running as LocalSystem.
  • Directory browsing enabled.
  • Logs never cleaned, filling the system drive.
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-Website | Select Name,State,PhysicalPath,Bindings
Scope / prerequisiteUse this when creating or reviewing an IIS website.
What next?3 suggested next steps
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.

1 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 Checks Verify boundary
Get-Website | Select Name,State,PhysicalPath,Bindings
Get-IISAppPool | Select Name,State,ManagedRuntimeVersion
Invoke-WebRequest https://intranet.corp.local -UseBasicParsing | Select StatusCode
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
Key points
  • Each site has its own bindings, physical path and pool.
  • Logs are kept per site ID.
  • Stopped sites return 503 or connection errors.
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
ReferenceWhy it matters1 section · depth on demand

Site structure

Site → applications → virtual directories, each mapped to an application pool (worker process w3wp.exe with its own identity). Separate applications into their own pools for isolation and recycling. appcmd list site, appcmd list apppool /state:Started. A stopped pool returns 503.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Sites in IIS have an ID, physical path, bindings and applications.

New-IISSite -Name intranet -PhysicalPath D:\Sites\intranet -BindingInformation '*:443:intranet.corp.example.com' -Protocol https -CertificateThumbPrint <thumb> -CertStoreLocation Cert:\LocalMachine\My -SslFlag Sni
Get-IISSite
Stop-IISSite -Name 'Default Web Site'
icacls D:\Sites\intranet /grant "IIS AppPool\intranet:(OI)(CI)RX"

Remove or stop the Default Web Site on production servers and give each site its own application pool identity.

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

Commands

Import-Module WebAdministration
Get-Website
New-Website -Name Intranet -PhysicalPath D:\Sites\intranet -HostHeader intranet.corp.local -Port 80
Get-IISAppPool
Restart-WebAppPool -Name Intranet

Documented example, not captured output. Logs are in %SystemDrive%\inetpub\logs\LogFiles\W3SVC<id>.

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 → Websites. 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
iis siteiis website
Confirmation

Confirm action

Continue?