| |
| | |
| | Serving Files from Logical Directories on an SFS DirectorySteps | How a URL Relates to Subdirectories and DIRMAP Files | URLs for Files Served From Logical Directories | When URLs Identify Directories Steps
How a URL Relates to Subdirectories and DIRMAP FilesIn the following illustration, the files are stored in VM userid DAN's user page:
VMWEBSRV DIRMAP Note: In the following example, if the files were stored in the server root domain rather than a user page, the web browser user would omit the ~dan element from the URL. When mapping a URL to a file, VM:Webgateway first attempts to match a URL element to an entry in a VMWEBSRV DIRMAP file. If a VMWEBSRV DIRMAP file does not exist on the current directory or the VMWEBSRV DIRMAP file does not contain a matching entry, VM:Webgateway looks at the SFS directory structure to find a match. +-- No VMWEBSRV DIRMAP file on If the element identifies a subdirectory, VM:Webgateway starts looking for information in the subdirectory. VM:Webgateway first looks for a VMWEBSRV DIRMAP file. If a VMWEBSRV DIRMAP file exists, VM:Webgateway attempts to match the next element to an entry in a VMWEBSRV DIRMAP file. If a matching entry does not exist, VM:Webgateway looks at the SFS directory structure to find a match. +-- Found in the VMWEBSRV DIRMAP If the element identifies an entry in a DIRMAP file, VM:Webgateway looks for the next element in the specified DIRMAP. The DIRMAP file must be located on the current directory. Once VM:Webgateway finds a match in a DIRMAP file, it only looks in DIRMAP files on the current directory to determine what file to serve. VM:Webgateway no longer matches elements in the URL to SFS subdirectories or files. +-- Found in the URLs for Files Served From Logical DirectoriesA web browser user views a file by identifying the subdirectories, logical directories, and the file in the path portion of the URL as described above. ExamplesIn the following examples, the files are stored in VM userid DAN's user page. The user page is defined as the VMSYSU:DAN.VMWEBGATEWAY directory. The subdirectory, VMSYSU:DAN.VMWEBGATEWAY.SPORTS, contains the DIRMAP structure displayed above.
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:
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. |