Show TOC Start of Content Area

Procedure documentation Changing the Root Directory of a Virtual Host  Locate the document in its SAP Library structure

Use

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.

This graphic is explained in the accompanying text 

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.

Procedure

Changing the Root Directory Using Visual Administrator

Use the Visual Administrator tool to change the root directory of a particular virtual host.

...

       1.      Open the Runtime tab of the HTTP Provider Service running on server process.

       2.      Choose the virtual host, the root directory of which must be changed.

       3.      Enter the new directory path in Root Directory. Make sure you have deleted the old value of this field.

       4.      To save your changes, choose Save Properties.

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.

This graphic is explained in the accompanying text

HOST myhost –root c:\server_dir. If you execute this on the command line, you will set the c:\server_dirdirectoryas the root directory of the myhost virtual host.

Note

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.

 

End of Content Area