Did you know: Difference between Virtual Directory & Application in IIS 7 / 7.5

by Vivek 12/7/2009 2:51:00 PM

In IIS 7 / 7.5, you have an option to create a Virtual Directory and Applications.

What is a Virtual Directory?

Virtual Directory is a directory that is mapped to a local physical directory or a directory on a remote server. A Virtual Directory will have it's code executed in the same worker process as the parent process. The application pool of the Web Site and Virtual Directory is the same.

Image05

What is an Application?

An Application is identical to the Virtual Directory except that you have an option to run an Application in a different application pool.

Image06

NOTE: this is how the above screenshots looks like in applicationhost.config

<site name="Default Web Site" id="1" serverAutoStart="true"> 
  <application path="/"> 
    <virtualDirectory path="/" physicalPath="%SystemDrive%\inetpub\wwwroot" /> 
    <virtualDirectory path="/sample virdir" physicalPath="C:\inetpub\ftproot\contoso\jfine" /> 
  </application> 
  <application path="/sample app" applicationPool="sample app"> 
    <virtualDirectory path="/" physicalPath="C:\inetpub\ftproot\contoso\bmayer" /> 
  </application> 
</site>

Hope this helps.
Vivek Kumbhar


Quote of the day:
I enjoy being a highly overpaid actor. - Roger Moore


blog comments powered by Disqus

Rahul Soni

Rahul Soni  Twitter

 LinkedIn

 Facebook

 Email me



Vivek Kumbhar

Vivek Kumbhar  Twitter

 LinkedIn

 Facebook

 Email me


Stack Exchange

profile for Vivek at Server Fault, Q&A for system administrators and IT professionals

profile for Rahul Soni at Stack Overflow, Q&A for professional and enthusiast programmers

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

All Items
Sign in

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2012, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0