Diadem Technologies Support Knowledgebase

Creating Virtual Directory for ASP.Net application

Article ID: 223
Last updated: 02 Apr, 2020

Creating a Virtual Directory for ASP.Net application

Description: A virtual directory is a link to an existing physical directory that is present on the server's hard disk. Virtual directories can have a number of specific settings like custom ASP.NET configuration, access permissions, URL password protection, and so on.  

  •  Usages of  Virtual Directories

Since any virtual directory can have its own settings, including customized ASP.NET configuration, virtual directories are very useful in setting up your web applications, especially those written in ASP.NET. For example, if you have three web applications that use ASP.NET version 4.0, and you need to install one web application that uses ASP.NET version 3.5, you can create a virtual directory for the ASP.NET 3.5 application (it is not recommended, as there is some abnormal activities in directories), configure ASP.NET settings for this directory, enabling version 4.0  is far more stable.

Virtual directories can also be used as aliases. For example, you have a web application installed on your domain 'yourdomain.com' in the physical folder '/my_data/web_apps/forum'. To access this web application, users need to type 'yourdomain.com/my_data/web_apps/forum', which is hard to remember and too long to type. You can create virtual directory 'forum' in the root of your virtual host, and link this virtual directory to '/my_data/web_apps/forum', so users who want to access the web application have to type 'yourdomain.com/forum' , which is much shorter and easier to remember.


       Step 1: To create Virtual Directories, Login to Plesk Control Panel and go for the Website & Domain tab, after that click on Virtual Directories.


         Step 2: Now click on the Create Virtual Directory icon.   


Step 3:  Specify the required parameters to create a Virtual Directory.

 Name - specify the virtual directory name.
 Path - specify the virtual directory path: Select the Create physical directory with the same name as the virtual directory checkbox to automatically create a physical directory with the same name as the virtual directory you are creating.

                 Enable the permissions.

                Select the Execute Permission.

               After all these steps just click OK.


         The new virtual directory has been created.




This article was:  
Report an issue
Article ID: 223
Last updated: 02 Apr, 2020
Revision: 8
Views: 6351
Comments: 0