Knowledgebase: Administration

How to Create a Virtual Directory on a Windows Subscription

Posted by on May 06 2014 01:08 PM

A virtual directory is a directory name (or path) that you specify in IIS and map to a physical directory on the local server. The directory name then becomes part of the application's URL, and users can request the URL from a browser to access content in the physical directory. If the virtual directory is not within the website's root folder, it will then turn into a new URL based on the virtual directory alias that was created: i.e. /wwwroot/folder1/folder2/ becomes http://websitename/folder2 instead of http://websitename/folder1/folder2.

This article assumes that you are already familiar with how to log in to the customer control panel. If you do not know how to log in or have forgotten your password, please refer to this article first.

  • On the control panel Home tab, click "Manage Website" under the Websites section.

  • Click "Virtual Directories".

  • Click "Add Virtual Directory"

  • Create a directory name (this will be the location on your site -- i.e. if you name the directory "test" then your resulting URL will be http://yourdomain.com/test); enter a description, if desired; enter the directory path relative to your site's root folder without a slash (the directory will be automatically created if it doesn't exist) OR choose to redirect this virtual directory to another URL by selecting Forwarding. Once done, click Next.

  • Select the Permissions and Authentication options you wish to enable for this virtual directory. If this will become a password protected directory, be sure to remove the check next to "Anonymous access". If this should be a publicly visible directory, remove the check box next to "Basic authentication". Click Finish to finalize creation of the virtual directory.

If you have any further questions that were not answered in this article, please contact us.

(4 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Copyright © 2016 HostMySite