| |
| | |
| | Serving Files from Logical Directories on a MinidiskSteps | URLs for Files Served Using Logical Directories | When URLs Identify Directories Steps
URLs for Files Served Using Logical DirectoriesA web browser user views a file by identifying the logical directories and the file in the path portion of the URL. VM:Webgateway matches each element in the path portion of a URL to a record in a DIRMAP file. VM:Webgateway always starts by reading the VMWEBSRV DIRMAP file. If a match is found on a DIR record, VM:Webgateway continues matching elements, but switches to use the DIRMAP file specified on the DIR record. ExamplesThe examples show how to view files stored in a user page for VM userid DAN. If the files were stored in the server root domain, the web browser user would omit the ~dan element from the URL. The examples use the following DIRMAP structure: VMWEBSRV DIRMAP
When URLs Identify DirectoriesWhen a web browser user enters a URL that identifies a directory rather than a file, VM:Webgateway generates and serves an automatic directory. The automatic directory contains a list of the items specified on FILE and DIR records in the current DIRMAP file. VM:Webgateway creates a hyperlink to each item in the list to allow a user to easily select and view an item. ExamplesThe following examples use the DIRMAP structure displayed above.
Note: To prevent VM:Webgateway from generating and serving an automatic directory, define a file you want VM:Webgateway to display when a URL identifies a directory. |
| | ||||
| | ||||
| Copyright © 1998, Sterling Software, Inc. |