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.

About Yasser Shaikh

Hello, I am a Web Dev, employed with Media.Net where I primarily work on ASP.NET MVC and Angular JS based developement.

Questions? Enquiries? Comments? Or even just want to say “Hi” to me, you are welcome to all of that. Just drop me a message at "" and I’ll get back to you as soon as possible.

Cheers !

  • 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.

  • Abdullahi

    hello yasser
    can you give me advice please.
    when i created a virtual directory to the physical file. i get an error in the authorization when i test it.

    The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that \$ has Read access to the physical path. Then test these settings again.