---
title: "Virtual Directory in IIS for webhosting"  
description: "let us talk about the virtual directory in IIS for website hosting ."  
author: "Ravi Vishwakarma"  
published: 2021-07-03  
updated: 2021-07-03  
canonical: https://www.mindstick.com/articles/327200/virtual-directory-in-iis-for-webhosting  
category: "iis 7"  
tags: ["c#", "iis 7"]  
reading_time: 2 minutes  

---

# Virtual Directory in IIS for webhosting

## Virtual Directory

Virtual directory is a directory that expose only by [web server](https://www.mindstick.com/articles/23199/digital-personal-server-the-premium-web-server). When we are worked on [visual studio](https://www.mindstick.com/forum/12863/how-to-insert-a-video-in-asp-dot-net-web-page-in-visual-studio-2010) then in my project directory treated [as virtual](https://www.mindstick.com/forum/469/can-we-declare-a-static-function-as-virtual) directory. We must create the virtual directory to developer for hosting our actual application on IIS web server. This virtual directory created on web server. Every virtual directory hold the another [web application](https://www.mindstick.com/interview/1126/does-silverlight-web-application-work-with-all-browsers) and represent to online. Control the [configuration](https://www.mindstick.com/articles/13112/setting-up-the-perfect-configuration-for-your-work-computer) setting for specific virtual directory. You specify in IIS (Internet information services) and map to the physical directory to local or remote server. Virtual directory name became a part of application URL. User can request to URL from browser for access the physical directory other language access the web page on browser. It is more difficult to specify the actual directory of file because URL doesn’t map the directly to actual physical directory.

## How to create new virtual directory

1. Open IIS (Internet Information Service)
2. In the connection pane, expend the [server name](https://answers.mindstick.com/qa/110129/how-to-change-discord-server-name), expend the site name, expend the node for [web site](https://www.mindstick.com/articles/12285/the-finest-web-site-design-trends-you-may-expect-in-2017)
3. In the site home pane, click view virtual directory in the action pane
4. Click set virtual directory defaults in action pane
5. In virtual directories defaults [dialog box](https://www.mindstick.com/forum/562/jquery-dialog-box-not-closed-in-asp-dot-net-mvc-4), specify [your default](https://answers.mindstick.com/qa/95660/how-do-you-remove-firefox-as-your-default-browser) virtual directory credentials

## Attribute of virtual Directory

1. Password
2. Path
3. Physical path
4. Username
5. LogonMethod

\

---

Original Source: https://www.mindstick.com/articles/327200/virtual-directory-in-iis-for-webhosting

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
