Virtual Directories

From Hostek.com Wiki
Jump to: navigation, search

What is a virtual directory?

A virtual directory is a directory alias within a website that refers traffic to another directory where the actual data is hosted. The directory it refers traffic to is a physical path on the server (or possibly another server via a network share if you have your own VPS servers).

Let's go ahead and show how to add this to a domain hosted on our windows platform by using our custom built control panel to easily create this virtual directory. Following the below steps it may also make it clearer what this virtual directory actually is.

How to access virtual directories in WCP

We'll share the steps needed to get to the virtual directory listings below:

  1. First login to your WCP control panel for the account the domain is under: https://wcp.hostek.com

    Wcp url secure.png

    If you have any issues with logging into WCP then please see our tutorials on recovering your password if necessary


  1. Once logged into WCP if you have multiple domains you may need to select the appropriate domain to manage using the 'Hosted Domains' drop-down in the top-right of the page as shown in the screenshot below:

    Wcp change domain.png


  1. Once in the correct domains WCP control panel click on the 'Virtual Directories' icon under the 'Files' section.

    Virtual directories.png


  1. If you have one or more subdomains created underneath the domain then you will get a prompt asking which domain or subdomain you'd like to manage the virtual directories for.

    Click the 'Manage' button next to the desired domain or subdomain you'd like to manage the virtual directories for.

    Manage virtual directories.png


Create new virtual directory


  1. You will now see a list of existing virtual directories (if any). To add a new virtual directory click the 'Add' button.

    Add virtual directory.png


  1. You will then be presented with a form asking what the virtual directory name should be and what folder (physical path) it should be mapped to.

    Note: You can click on the 'Browse' button to select a directory that already exist within your site rather than having to type it in.

    Virtual directory info.png

  2. If you need this virtual directory to also bet setup as an Application Folder then you can check the box for this as well. In most cases, but not all, customers only need this setup as a virtual directory and not an application.

    Virtual directory app.png


  1. Review the information you've inserted and selected in the form and then click the 'Save' button once you're ready to add the virtual directory.

    Save virtual directory.png

Edit existing virtual directory


If you need to edit an existing virtual directory we'll show you how below.

  1. Click the pencil icon next to the desired existing virtual directory as shown in the screenshot below:

    Virtual directory edit.png


  1. You will then be able to update the physical directory that virtual directory pulls from.

    Note: You cannot update the actual virtual directory name itself. You'll have to delete the virtual directory and create a new one if it needs setup with a new name.

    Edit virtual directory view.png

Delete existing virtual directory

Let's show how to delete an existing virtual directory.

  1. Click the trash can icon next to the virtual directory you wish to remove as shown in the screenshot below:

    Delete virtual directory.png

  2. You'll then be presented with a confirmation pop-up asking if you're sure that you want to delete this virtual directory as shown in the screenshot below. Click 'OK' to confirm the deletion or click 'Cancel' to cancel the removal of the virtual directory.

    Confirm delete vdirectory.png