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

by Vivek 12/7/2009 2:21:00 AM

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

Search


Tags



Categories

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

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 2010, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0