| |  | Overriding Automatic Directory Generation Using a DIRMAP File Steps | Examples - Move the file to serve to the location you serve files from.
- Add an INDEX directory control record to the current DIRMAP file. If you are not currently using DIRMAP files, create a VMWEBSRV DIRMAP file (for BFS VMWEBSRV.DIRMAP) in the current directory to hold the INDEX record. For example, to display the file HOMEPAGE HTML (for BFS HOMEPAGE.HTML), add the following record:
INDEX HOMEPAGE HTML The INDEX record indicates VM:Webgateway should serve the specified file rather than generating and serving an automatic directory. Note: If you serve data from an SFS or BFS directory, the file you specify must reside in the same directory or subdirectory as the DIRMAP file that contains the INDEX record. - The user with VM userid LEANNA serves data from a minidisk. The file HOMEPAGE HTML resides in the minidisk she serves data from. The VMWEBSRV DIRMAP file in the minidisk contains the following INDEX record:
INDEX HOMEPAGE HTML When a web browser user enters the following URL, VM:Webgateway serves the file HOMEPAGE HTML: http://www.company.com:80/~leanna/ - User DANIEL defined his user page as the SFS directory, VMSYSU:DANIEL.VMWEBGATEWAY. The files CONTENTS CGIREXX and VMWEBSRV DIRMAP reside in the directory. User DANIEL placed the following INDEX record in the VMWEBSRV DIRMAP file:
INDEX CONTENTS CGIREXX When a web browser user enters the following URL, VM:Webgateway serves the file CONTENTS CGIREXX: http://www.company.com:80/~daniel/ - User ANDREW defined his user page as the BFS directory, /../VMBFS:VMSYSU:ANDREW/WebUserRoot. The files ProjectSummary.Html and VMWEBSRV.DIRMAP reside in the subdirectory /../VMBFS:VMSYSU:ANDREW/WebUserRoot/ProjectA. User ANDREW placed the following INDEX record in the VMWEBSRV.DIRMAP file:
INDEX ProjectSummary Html When a web browser user enters the following URL, VM:Webgateway serves the file ProjectSummary.Html: http://www.company.com:80/~andrew/ProjectA/ - The VM:Webgateway system administrator defined the server root domain as the SFS directory VMSYSU:VMWEBSRV.ROOTDIR. The files JOBS HTML and VMWEBSRV DIRMAP reside in the subdirectory VMSYSU:VMWEBSRV.ROOTDIR.HRDEPT. The system administrator placed the following INDEX record in the VMWEBSRV DIRMAP file:
INDEX JOBS HTML When a web browser user enters the following URL, VM:Webgateway serves the file JOBS HTML: http://www.company.com:80/hrdept/
|