Creating a Virtual Folder

The following example shows how to create a virtual folder called graphics that allows DivePort to retrieve files from D:/DI_Demos/Graphics.

  1. Browse to C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\Catalina\<diveport>.
  2. Create an xml file for the virtual folder, using the virtual folder name as the xml name. For example, graphics.xml.

    NOTE: This is case-sensitive.

  3. Add the following information to the file:

    <Context path = “/<virtual-folder-name>
    docBase = “<data-location>”>
    </Context>

    Where <virtual-folder-name> is the name of the virtual folder and <data-location> is the actual folder name and path. For example:

    <Context path = “/graphics
    docBase = “D:/DI_Demos/Graphics”>
    </Context>
  4. Save the file.

DivePort users can now access the contents of the D:/DI_Demos/Graphics directory by specifying the http://<diveport>:8080/graphics URL.