Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: 01330ec25d
Fetching contributors…

Cannot retrieve contributors at this time

110 lines (96 sloc) 4.324 kb
__NAME__ purpose
register catalog with the Interchange server
__NAME__ see also
ConfigDatabase, FullUrl
__NAME__ synopsis
<arg choice='plain'><replaceable>name</replaceable></arg>
<arg choice='plain'><replaceable>catalog_directory</replaceable></arg>
<arg choice='plain' rep='repeat'><replaceable>link_program_path</replaceable></arg>
__NAME__ description
The directive registers a &glos-catalog; that will run on the corresponding &IC;
The directive expects three or more arguments.
First expected is the name of the &glos-catalog;. It will be referred to by the specified
name in error, warning, and informational messages. It must contain only
alphanumeric characters, hyphens, and underscores. It is highly recommended that
it is also all lowercase.
Second argument specifies the filesystem base directory of the catalog.
If the directory does not exist, the required &ccf; is not there, or &IC;
detects any other problem, catalog configuration will be skipped and the
won't be activated.
Third argument is the so called <literal>SCRIPT_NAME</literal> of the
&glos-link-program;. It is a webserver path by which the catalog can be
accessed. It can be followed by different
<emphasis role='bold'>aliases</emphasis>, all allowing access to
the same &glos-catalog;. For example, this is useful when calling an SSL
server or a
members-only alias that requires a Basic HTTP authorization using the
username/password pair. All subsequently generated links would be called using
the aliased URL.
The script name must be unique among CGI program paths that run on the
&IC; server, unless the &conf-FullUrl; directive is specified. In this case,
hostnames can be added to differentiate otherwise same paths; as usual, see
<xref linkend="Catalog_examples"/> for clarification.
It is also possible to define catalog-specific &glos-configuration; directives
from the global &gcf; file. Again, see <xref linkend="Catalog_examples"/>.
__NAME__ notes
&conf-Catalog; is one of the basic Interchange &glos-configuration; directives.
<command>makecat</command>, the &glos-catalog; creation helper script,
automatically inserts
the &conf-Catalog; line in the &gcf; file as part of the standard procedure.
If the &ccf; file, expected in the catalog base directory, is not found, or is
unreadable by the &IC; server, somewhat misguiding error message will be reported.
Instead of the appropriate permissions-problem message, the mandatory
&conf-VendURL; directive will be reported as undefined.
__NAME__ example: Registering a catalog
Catalog simple /home/catalogs/simple /cgi-bin/ic/simple
__NAME__ example: Using FullUrl to differentiate same-named catalogs on different hosts
FullUrl yes
Catalog simple1 /home/catalogs/simple1
Catalog simple2 /home/catalogs/simple2
Make sure to read the &conf-FullUrl; directive reference page before just
including it in your &glos-configuration;.
__NAME__ example: Elaborate Catalog directive definition
Given the nature of the &conf-Catalog; directive, a catalog can be registered somewhat
verbosely with:
Catalog simple directory /home/catalogs/simple
Catalog simple script /cgi-bin/ic/simple
Catalog simple alias /simple
__NAME__ example: Defining catalog-specific directives in the global config file
Re-using the elaborate example from just above, it is also possible to define
catalog-specific directives in the global &gcf; file.
This is most useful to do with the &conf-ErrorFile; and &conf-DisplayErrors;
Catalog simple directive ErrorFile /var/log/interchange/simple-error.log
__NAME__ missing
Can catalog.cfg override cat-specific directives set in interchange.cfg ?
How if catalog names supported regexps, so you could do like: Catalog \S+ directive ErrorFile /var/log/interchange/$1-error.log
List all possible hash keys used with Catalog
Remove from NOTES line about undefined VendURL if we fixed the error msg
Jump to Line
Something went wrong with that request. Please try again.