| |
| | |
| | DIR RecordRecord Syntax | How VM:Webgateway Processes DIR Records | Examples The DIR directory control record points to another DIRMAP file. Use the DIR record to create a logical directory structure. Record Syntax DIR urltoken filename
Note: A DIRMAP file can contain 0 or more DIR records. If an element in the path matches more than one DIR record in a DIRMAP file, VM:Webgateway uses the first record to match. If an element in the path matches both a DIR record and a FILE record, VM:Webgateway uses the first record to match. How VM:Webgateway Processes DIR RecordsWhen determining what file to serve based on the path portion of the URL, VM:Webgateway matches elements in the URL to urltoken. If it finds a match, VM:Webgateway reads the DIRMAP file identified by filename to match the next element of the URL. If you are serving files from a BFS directory, VM:Webgateway performs a case sensitive match when comparing elements in the URL to urltoken. As a result, for web browser users to obtain files that are served from a BFS directory, they must specify the URL using the exact case you use in urltoken. Example A web browser user enters the following URL: http://www.company.com/~leanna/project_A/sum.html VM:Webgateway receives the following part of the URL: ~leanna/project_A/sum.html VM:Webgateway uses the ~leanna element of the URL path to determine that the data resides in the userid LEANNA's user page. VM:Webgateway reads the VMWEBSRV DIRMAP file (for BFS, VMWEBSRV.DIRMAP) in the user page. The following DIR record in the VMWEBSRV DIRMAP file indicates that VM:Webgateway needs to read the PROJA DIRMAP (for BFS, PROJA.DIRMAP) file to determine the file to serve: DIR project_A PROJA Examples
| ||||||||||||||||||||||||||||||
| | ||||
| | ||||
| Copyright © 1998, Sterling Software, Inc. |