The virtdir.exe
utility is designed to manage virtual directories on
domains. The utility allows the following:
- creating, configuring, and removing a virtual directory
- setting read and write access permissions for a virtual directory
- creating a virtual directory as an IIS application and managing the
application settings - managing virtual directory security
- specifying which version of ASP.NET and PHP to use for a virtual
directory - configuring ASP (for example, enabling script debugging)
Note: The functionality of virtdir.exe
utility is not equal to
functionality of Web Directories in Plesk GUI.
Location
%plesk_cli%
Usage
virtdir.exe <command> [<name>] [
<option 1> <param 1>[,<param 2>,...,<param N>]
[<option 2> <param 1>[,<param 2>,...,<param N>]]
... [<option n> <param 1>[,<param 2>,...,<param N>]]
]
Example
The following command creates the /vd1
virtual directory on
example.com as follows: it creates the physical directory in the root
directory of the virtual host, maps it to the new virtual directory;
allows write access to the contents of the virtual directory (including
the source code), disallows read access to these resources, allows
viewing the contents of the virtual directory in a browser; disables
logging visits on the virtual directory; makes the virtual directory
function as a web application (from the standpoint of IIS); disallows
running any scripts or executables; sets no default page to display in
the browser if no particular page is specified by the user; allows
public access to the virtual directory; turns off SSL/TLS support for
this directory.
plesk bin virtdir.exe -c /vd1 -vhost example.com -create_phys true -access_source true -access_read false -access_write true -dir_browsing true -log_visits false -create_app false -execute_perm none -default_doc false -access_anonymous true -require_ssl false
Commands
<div…