Web Server Setup tutorial
Examples of Mapping Creating a virtual directory to proxy to another server

## Preliminaries

- The Virtuoso Web server can act as a proxy server for HTTP requests.
- If request from a user-agent is a proxy request, then the Web server will try to retrieve the URL, and will send the response and entity body back to the user-agent.
- The virtual directory mapping can be setup when physical location is a Web server. The local URL will then be treated by the Web server as a proxy request.

Login to the Conductor UI using the dba account.

## Example virtual directory setup to another HTTP server

1. Go to "Web Application Server" tab and then go to the "Virtual Domains & Directories" tab.
2. From the given list of HTTP Hosts click the icon infront of the Interface value.
3. Click the "Add new directory" link.
4. Choose the "Proxy server" type and press the button "Next>>".
5. Enter "/proxy" for Virtual directory path, "http://[desired_host:port]/" for Proxy to, and then press the "Save Changes" button.

To test the new directory: enter the "http://your_host:port/proxy" in browser. If all is ok, the content of the web tutorial directory is shown.

## Equivalent SQL commands to above

1. Connect to the Virtuoso server via ISQL utility as DBA user.

2. Create the virtual directory with physical path "http://host:port/"

       SQL> vhost_define (vhost=>'*ini*',lhost=>'*ini*',lpath=>'/proxy',ppath=>'http://host:port/');