| |
| | |
| | Serving Files from Logical Directories on a BFS 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 BFS 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 in the subdirectory. 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 BFS 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 file. 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 BFS directories 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 name in the path portion of the URL as described above. When analyzing the URL to determine what file to serve, VM:Webgateway performs a case sensitive match when comparing each element in the URL to:
As a result, for VM:Webgateway to serve a file, the URL from the the web browser must use the exact case you specify on the urltoken of a DIRMAP record or the exact case you used when naming each BFS directory and the file. If VM:Webgateway uses a FILE record to determine the file to serve, it forms the BFS file name by joining the values specified in the filename and filetype parameters with a period. VM:Webgateway performs a case sensitive search to find the file on a BFS directory. For example, for the following FILE record, VM:Webgateway looks for the BFS file FunStuf.HtMl on a BFS directory: ExamplesIn the following examples, the files are stored in VM userid DAN's user page. The user page is defined as the directory /../VMBFS:VMSYSU:WEBROOTS/DanUserRoot/. The subdirectory /../VMBFS:VMSYSU:WEBROOTS/DanUserRoot/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. |