Creating Virtual Directories

A virtual directory can be created by Plesk Administrator only. A virtual directory is created to map an existing physical directory of the site hosted on the specified domain. The name of the virtual directory is specified as a relative path of this physical directory (the details follow).

A virtual directory obtains a collection of useful features (virtual directory settings) as follows:

If not specified, the default virtual directory settings will be set up. See the Virtual Directory Settings section for details.

You can create one to many virtual directories with a single packet, including multiple virtual directories for the same physical directory. If the specified virtual directory maps a non-existing physical one, it will be created on the virtual host.

Mapping Issues

Assume that we have a domain named mydomain and want to map the site hosted on this domain. We can create a virtual directory with the specified name (e.g. /vd1), and it will map the root directory of the site (...\vhost\mydomain\httpdocs). In addition, we can create more virtual directories within the created one (e.g. /vd1/vd2). This operation will create a physical directory of the same name (vd2) within the root of the site (...\vhost\mydomain\httpdocs\vd2), and this virtual directory will map the new physical one.

The following table demonstrates how the specified name of teh virtual directory affects the mapping:

Virtual directory name

The mapped physical folder

Comment

/

...\vhost\mydomain

It maps the root of the domain.

/vd1

...\vhost\mydomain\httpdocs

It maps the root of the site hosted on the domain.

/vd1/vd2

...\vhost\mydomain\httpdocs\vd2

The /vd2 virtual directory is nested within the /vd1 one. Creating /vd2 means the creation of the /vd2 physical folder within \vhost\mydomain\httpdocs mapped by /vd1.

In this section:

Request Packet Structure

Request Samples

Response Packet Structure

Response Samples