Diadem Web Hosting Knowledgebase
Search:     Advanced search

Creating Virtual Directory for ASP.Net application

Article ID: 223
Last updated: 10 May, 2011
Add comment
Views: 5103
Comments: 0

A virtual directory is a link to 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 2.0, you can create a virtual directory for the ASP.NET 2.0 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.


To create Virtual Directories, Login to Plesk Control Panel and go for the Website & Domain tab, after that click on Show Advanced Operations then select Virtual Directories.




Now click  on the Create Virtual Directory icon.   



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 virtual directory check box 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.



New virtual directory has been created.




This article was:  
Add comment
Prev   Next
Creating ODBC DSN through PLESK     Changing the ASP.Net version for Virtual Directory/Website...