|
|||||||||
|
GN cache filesGN cache files are used as the basis for serving information to both Gopher and Web clients. Every resource to be served (including the CGI scripts that generate virtual documents) must be explicitly listed in the cache file which resides in the same directory as the resource file. Cache files have a rigidly defined structure, which makes them uncongenial to edit; however, there is a program, mkcache, which will generate cache files from menu description files, which are much easier to edit. They are composed of plain text with a relatively free format, and may contain comments. A sample menu description file is shown below:
# Sample basic menu file for the GN server. Blank lines and comment lines (which start with a hash sign - #) are ignored. Each menu item is defined by a group of lines containing keywords and values.
Spinning the Web by Andrew Ford |
||||||
Copyright © 1996-2002 Ford & Mason Ltd |