| |  | Serving Files from an SFS Directory Steps | URLs for Files Served from SFS Directories | When URLs Identify Directories - Move the files you want VM:Webgateway to serve to the SFS directory or one of its subdirectories. Or, create SFS aliases to the files you want to serve in the directory or one of its subdirectories.
- Grant the VM:Webgateway SVM authorization to read the files you want to serve.
VM:Webgateway serves any data on the directory or one of its subdirectories that it has authority to read. To prevent VM:Webgateway from serving files, set up access control or set SFS authorizations to prohibit VM:Webgateway from reading the files. A web browser user views a file by identifying the file in the last element of the path portion of the URL. In addition, if a file resides in a subdirectory, the path portion of the URL must also include elements to indicate each subdirectory VM:Webgateway must look at to obtain the file. Examples - The user with VM userid JOE defined his user page as VMSYSU:JOE.VMWEBGATEWAY. The VM:Webgateway SVM is identified by www.comp.com on port 80. To view file HOMEPAGE HTML owned by userid JOE that is stored in the directory VMSYSU:JOE.VMWEBGATEWAY use the following URL:
http://www.comp.com:80/~joe/homepage.html To view the file PROJECTS HTML stored in the subdirectory VMSYSU:JOE.VMWEBGATEWAY.TIME use the following URL: http://www.comp.com:80/~joe/time/projects.html To view the file DATA HTML stored in the subdirectory VMSYSU:JOE.VMWEBGATEWAY.TIME.SCHED use the following URL: http://www.comp.com:80/~joe/time/sched/data.html - The VM:Webgateway system administrator defined the server root domain as VMSYSU:VMWEBSRV.ROOTDOMAIN. The VM:Webgateway SVM is identified by www.comp.com on port 80. To view the file OPENINGS HTML in the server root domain and stored on the directory VMSYSU:VMWEBSRV.ROOTDOMAIN, use the following URL:
http://www.comp.com:80/openings.html To view the file NEWS HTML stored in the subdirectory, VMSYSU:VMWEBSRV.ROOTDOMAIN.MIS, use the following URL: http://www.comp.com:80/mis/news.html To view the file DOWN TIMES stored in the subdirectory, VMSYSU:VMWEBSRV.ROOTDOMAIN.MIS.MAINT, use the following URL: http://www.comp.com:80/mis/maint/down.times Note: If VM:Webgateway is using SSL Feature and is configured to use SSL, begin the URLs with https:// rather than http://. To determine whether VM:Webgateway is using SSL, enter the QUERY SOCKET command from your VM userid. When a web browser user enters a URL that identifies a directory rather than a file, VM:Webgateway generates and serves an automatic directory. An automatic directory is a list of the data available for serving. The data available for serving is all the files and subdirectories in the current directory. VM:Webgateway creates a hyperlink to each file and subdirectory in the list to allow a user to easily select and view data. 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. Overriding Automatic Directory Generation (listed in the side bar) describes how to prevent VM:Webgateway from serving automatic directories. Examples - The user with VM userid JOE defined his user page as VMSYSU:JOE.VMWEBGATEWAY. The VM:Webgateway SVM is identified by www.comp.com on port 80.
When a web browser user enters the following URL, VM:Webgateway displays a list of files and subdirectories contained in the directory VMSYSU:JOE.VMWEBGATEWAY: http://www.comp.com:80/~joe/ When a web browser user enters the following URL, VM:Webgateway displays a list of files and subdirectories contained in the directory VMSYSU:JOE.VMWEBGATEWAY.TIME: http://www.comp.com:80/~joe/time - The VM:Webgateway system administrator defined the server root domain as VMSYSU:VMWEBSRV.ROOTDOMAIN. The VM:Webgateway SVM is identified by www.comp.com on port 80.
When a web browser user enters the following URL, VM:Webgateway displays a list of files and subdirectories contained in the directory VMSYSU:VMWEBSRV.ROOTDOMAIN: http://www.comp.com:80/ When a web browser user enters the following URL, VM:Webgateway displays a list of files and subdirectories contained in the directory VMSYSU:VMWEBSRV.ROOTDOMAIN.MIS: http://www.comp.com:80/mis
Note: To make the URLs that are required to access your files more meaningful, create logical directories and use alias names. |