My Account Subscribe Help About
Sign In | Register FREE
Tuesday, April 14, 2026
UK faces biggest hit to growth from Iran war of major economies, IMF saysWhy and how is US blockading Iranian ports in Strait of Hormuz?Former Nato chief warns UK security 'in peril' as he accuses Starmer of 'corrosive complacency'We will name police and social workers unless action taken, lawyer for Southport families saysHouseholds could get free electricity for doing washing on sunny weekends'Welcome home': Watch joyful reunion as Orion capsule opened after splashdownWoman asked to leave bar after wheelchair deemed a 'safety risk'JD Vance defends backing 'great guy' Orbán's campaign after landslide defeatBurglars who used Rightmove to target homes and steal £1m of valuables jailedGreek police using masked migrants to forcibly push other migrants back across borderSingle-sex space guidance for organisations to be published after May electionsTracking the ships crossing the Strait of HormuzUS blockade of Iranian ports explained in two minutesOil prices continue to fall on hopes of new US-Iran peace talksLebanon seeks peace, but Hezbollah needs to be convinced firstHow a Primark trainer ended gang's £1m Rightmove burglary spreeWatch: What are Harry and Meghan doing in Australia?Hospital at centre of child HIV outbreak caught reusing syringes in undercover filmingAdam Peaty on his return to the pool, LA 2028 and Gordon Ramsay's wedding speechWhy one school has banned phones for some pupils - but not othersChris Mason: How Lammy and Vance's unlikely friendship is being utilisedOasis among record number of British acts entering Rock & Roll Hall of FameDoctor Who star Ncuti Gatwa to receive honorary doctoratePartner of US influencer who died in Zanzibar speaking to police as witnessFrench woman, 86, held by ICE after moving to US to reunite with long-lost loveChalamet thanked by Royal Ballet and Opera boss for boosting ticket salesGrand National horse trainer jailed for beating man with hockey stickBBC News appAmericanswers... on 5 Live! Donald Trump vs Pope Leo on IranThe "systemic failures" before the Southport attack
FDN » IIS » Virtual Directories in IIS

Virtual Directories in IIS

Virtual Directories in IIS

A virtual directory maps an alias in the URL space to a physical directory on disk (or a network share). Virtual directories let you organize web content without matching the physical folder structure.

Creating a Virtual Directory

  1. Open Internet Services Manager.
  2. Expand the target web site.
  3. Right-click the site → NewVirtual Directory.
  4. Enter an alias (e.g., docs). This becomes the URL path: http://server/docs/.
  5. Browse to the physical path (e.g., D:\Documentation).
  6. Set permissions: Read, Run scripts (ASP), Execute (CGI/ISAPI), Write, Browse.
  7. Click Finish.

Virtual Directory vs. Application

A virtual directory becomes an application when it runs in its own application space. Applications have their own Session and Application objects in ASP.

To create an application from a virtual directory:

  1. Right-click the virtual directory → Properties.
  2. Under Application Settings, click Create.
  3. Choose the application protection level:
    • Low (IIS Process): Runs in inetinfo.exe — fastest but a crash takes down IIS.
    • Medium (Pooled): Runs in a shared dllhost.exe pool — default and recommended.
    • High (Isolated): Runs in its own dllhost.exe — most stable but uses more memory.

Mapping to a UNC Path

To map a virtual directory to a network share, enter the UNC path (\fileserver\share\docs) and provide credentials with read access. IIS uses these credentials to access the remote content.

Scripting with ADSI

' Create a virtual directory programmatically using ADSI
Set objWeb = GetObject("IIS://localhost/W3SVC/1/Root")
Set objVDir = objWeb.Create("IIsWebVirtualDir", "docs")
objVDir.Path = "D:\Documentation"
objVDir.AccessRead = True
objVDir.AccessScript = True
objVDir.SetInfo
WScript.Echo "Virtual directory /docs created."
« Back to IIS « Back to FDN