What is Virtual Directory
A virtual directory is a directory name that you specify in IIS and map to physical directory on a local server's hard drive or a directory on another server (remote server). You can use Internet Information Services Manager to create a virtual directory for an ASP.NET Web application that is hosted in IIS.
The virtual directory name becomes part of the application's URL. It is a friendly name, or alias because an alias is usually shorter than the real path of the physical directory and it is more convenient for users to type. A virtual directory receives queries and directs them to the appropriate backend identity repositories. It integrates identity data from multiple heterogeneous data stores and presents it as though it were coming from one source.
How to create a virtual directory by using IIS Manager
1. In IIS Manager, expand the local computer and the Web site to which you want to add a virtual directory.
2. Right-click the site or folder in which you want to create the virtual directory, click New, and then click Virtual Directory.
3. In the Add Virtual Directory dialog box, at a minimum enter information in the Alias and Physical path and then click OK.
By default, Internet Information Server uses configuration from Web.config files in the physical directory to which the virtual directory is mapped, as well as in any child directories in that physical directory
- What is IIS - Internet Information Server
- What is HttpHandler
- Page Directives in Asp.Net
- What is a postback
- What is IsPostBack
- What is global.asax
- Difference between Machine.config and web.config
- Difference between HTML control and Web Server control
- What is Query String
- Difference between Authentication and Authorization
- How to secure Connection Strings
- What is ASP.Net tracing
- Passing values between Asp.Net pages
- Differentiate between client side validation and server side validation
- How to Get host domain from URL
- Adding a Favicon To Your Website
- AutoEventWireup attribute in ASP.NET