
You can use this procedure to change the root directory of a virtual host. A default value for the root directory is assigned to the new virtual host when you create it. For more information, see Creating a New Virtual Host .
The root directory denotes the top-level directory for this host that contains various static resources that the user can request. It is commonly referred to as the document root by most Web servers.
Changing the root directory may imply that you need make further changes of some other properties of the virtual host, such as the start page.
Whenever you request a particular virtual host, its start page is displayed. In case you have not set a start page, the server will search the root directory for a file that appears in the value of the InferNames property. The first match found is returned to the client browser.
Changing the Root Directory Using Visual Administrator
Use the Visual Administrator tool to change the root directory of a particular virtual host.
Change Root Directory Using Telnet
To change root directory using Telnet , you must execute the HOST shell command with the -root option on the server process. You must also specify the name of the host, for which you want to change the root directory. For detailed description of the HOST command, see HTTP shell commands group.
HOST myhost -root c:\server_dir . If you execute this on the command line, you will set the c:\server_dir directory as the root directory of the myhost virtual host.
In addition to setting the root directory, you must also set the start page. For more information on doing this, see Setting the Start Page of a Virtual Host .