Pcornel
Browse topics
Options
Recent
Favorites
Web Infrastructure · Technical reference

Virtual Directories

Direct answer

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.

When to use this

Use this when mapping a URL path to a different folder in IIS.

First 30 seconds

1. Get-WebVirtualDirectory -Site <site>.

2. Physical path reachable (UNC credentials).

3. Pool identity permissions.

4. Not an application (inherits).

5. Test URL.

Operational verification

URL path → virtual directory → physical folder

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
Scope / prerequisiteUse this when mapping a URL path to a different folder in IIS.
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 Common mistakes Narrow the fault
  • Pointing to UNC paths without configuring credentials.
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
  • A virtual directory is not a separate application.
  • The pool identity needs access to the physical path.
  • It inherits the site's settings.
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

What it is

A virtual directory maps a URL path in a site (/docs) to a physical folder that can be outside the site root. It runs inside the parent application. An application is similar but has its own app pool and configuration boundary.

ReferenceHow it works1 section · depth on demand

In depth

Virtual directories map a URL path to a physical folder (possibly on another drive or UNC share) without being a separate application.

New-WebVirtualDirectory -Site intranet -Name docs -PhysicalPath \\fs01\webdocs
Set-WebConfigurationProperty -PSPath IIS:\Sites\intranet\docs -Filter system.applicationHost/sites/site/application/virtualDirectory -Name userName -Value 'CORP\svc-webcontent'

Applications (New-WebApplication) differ: they get their own app pool and web.config scope. UNC-backed content needs credentials (connect-as or app pool identity with share permissions) and is sensitive to file server latency.

ReferenceImportant terms & boundaries1 section · depth on demand
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 → Virtual Directories. 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 virtual directoryiis application
Confirmation

Confirm action

Continue?