How to create a virtual directory in IIS using Windows 7

What is a Virtual Directory ?

A virtual directory represents a web application and it points to a physical folder in your computer.

How to create it in IIS on Windows 7 ?

In IIS (Internet Information Services Manager), as shown in the screenshot below, right click on a website under which you want to create a virtual directory. In this example “DemoSite” is the website under which I will be creating my virtual folder.

This can be done by right clicking it and selecting the “Add Virtual Directory” option.

Next you will get a window like the one below in the screenshot, where you will have to enter an “Alias” name for the virtual directory and also provide a Physical Path to it.

Click Ok and your virtual path is ready to use.

In case of any doubts or queries, feel free to use the comment section.

  • bhargavi

    how to locate virtual directory address in visualstudio to creat a web site.

  • Shobhit

    Sir I want to studied about ASP.NET MVC, WCF, WPF, LINQ From beginners level to Professional level, so please suggest me any website or any best resource for above things.