The term virtual directory applies to the mechanism to hide the physical location of a Web resource under different path which user agents use to retrieve it. This mechanism in virtuoso is a part of host definition.
This method is useful when one server has to keep many Web sites. Using a redirect mechanism is not a universal way to do this. It is better to define virtual hosts and paths to the directory entries which contain Web pages.
For an overview of virtual directories, and how to configure them in PL, refer to the Virtual Directories Section.
This step by step example will define a virtual directory /help that will point to the directory /departments/support/
In the Virtuoso Administration Interface select the menu WebDAV / WebDav Services / HTTP Virtual Directories.
![]() |
To add a new directory definition select Edit URL mappings action for the Default Web Site.
![]() |
Press the button at the foot of the form to add a new virtual directory.
![]() |
Select File system from the Templates, as this mapping example will be from one directory to another.
![]() |
Enter details in the form to define the mapping. Most of the fields are optional. In this example, only the logical and physical paths and the default page name are required.
![]() |
The following URLs will then be equivalent:
The term Multi Homing refers to the practice of maintaining more than one server on one machine, differentiated by their apparent host name. It is often desirable for companies sharing a web server to have their own domains, with web servers accessible as www.company1.com and www.company2.com, without requiring the user to know any extra path information.
For an overview of Multi Homing, and how to configure it with PL, refer to the Virtual Hosting and Multi Hosting section.
This step by step example will define a virtual home for the URL http://www.ahelp.com/ to the server www.a.com and directory /departments/support/
Have a domain name allocated in the DNS for the ahelp.com that points to the same IP address of the a.com that is hosting a virtuoso server.
In the Virtuoso Administration Interface select the menu WebDAV / WebDav Services / HTTP Virtual Directories.
![]() |
To add a new host definition select Add new site button.
![]() |
Define the mapping between the virtual host and the actual listening host domain names.
![]() |
Select File system from the Templates, as this mapping example will be from one directory to another.
![]() |
Enter details in the form to define the mapping. Most of the fields are optional. In this example, only the logical and physical paths and the default page name are required.
![]() |
The following URLs will then be equivalent:
Previous
Virtual Database Server |
Chapter Contents |
Next
WebDAV |