Dynamic Indexing URL-Paths


Dynamic Indexing URL-Path Format

A URL-path that ends with a slash ("/") will either generate a dynamic index or will use an already created index file. Whenever a URL-path that ends in a slash is received, Web Server/400 checks to see if a Web document with the name defined in Index Name exists in the directory pointed to by the URL-path. If one does, that Web document is sent. If not, and the server is configured to do so, an index of the contents of the URL-path is dynamically created and sent back to the browser.

NOTE: When referencing Web documents found in the QSYS file system, both libraries and files are considered directories. That is, putting a slash on the end of a physical file name will bring up either the member named with the Index Name or a dynamic index of the members in the file. A library with a trailing slash will either send a file named with the Index Name or a dynamic index of all the objects in the library.

Dynamic Indexing URL-Path Examples

A URL-path of /index/
The index name is an alias which maps to the /samples/index/ directory in the IFS root file system. The dynamic index view of the index directory would be shown assuming that a file with the Index Name does not exist within the directory.

A URL-path of /Samples/index/
The dynamic index view of the index directory would be shown assuming that an index file did not exist within the directory. This is the same view as the previous example except that an alias was not used in this example.

A URL-path of /QSYS/WWWSAMPLES.LIB/
The QSYS name is an alias which maps to the QSYS library within the QSYS file system. The dynamic index view of all the files within the WWWSAMPLES library would be shown assuming that a file named the same as the Index Name did not exist within the library.

A URL-path of /QSYS/WWWSAMPLES.LIB/SAMPLE.FILE/
The QSYS name is an alias which maps to the QSYS library within the QSYS file system. The dynamic index view of all the members within the SAMPLE physical file residing in the WWWSAMPLES library would be shown assuming that an index member did not exist within the file.

A URL-path of /QDLS/Samples/
The QDLS name is an alias which maps to the Document Root QDLS within the QDLS file system. The dynamic index view of all the files within the Samples directory assuming that an index file does not exist within the directory.