For more information... RTFM!
NAVIGATION
PAGES THAT LINK HERE
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

TcpMap

Specify which ports Internet-domain ports Interchange server should run on if Inet_Mode is switched on.

Synopsis

TcpMap  [host:]port -

Scope

This directive is only available for use in the global (interchange.cfg) configuration file, and will affect all websites running under the Interchange installation.  It will not work in a website's local (catalog.cfg) configuration file. 

Description

The TcpMap directive defines a list of host addresses and ports that the Interchange server should listen on when Inet_Mode is switched on.

In the past, Interchange had its own built-in Web server which also allowed for binding of specific websites to specific ports.  Since this built-in web server has been removed, its behaviour was replaced by a combination of aliases on the real Web server (i.e. Apache) and Interchange website definitions (i.e. Catalog).

By default, Interchange listens on port 7786, on all IP addresses.  The port number comes from the ASCII values of the letters "M" and "V", which was shorthand for "MiniVend" (Interchange's old name).

A few examples of the [host:]port argument syntax are "7786", "*:7786", "127.0.0.1:7786" and "andromeda.office.cursor.biz:7786".

The "-" parameter used to refer to the name of the website on offer at the specified hostname and port.  As the built-in web server no longer exists, the only sensible value is "-".

Example

The following makes Interchange listen on three ports. 

TcpMap  7786 - 7787 - 7788 -

To manage a large number of ports easier, the "here document" capability of the Interchange configuration syntax can be used.  For example: 

TcpMap <<EOM
    *:7786 -
    127.0.0.1:7787 -
    andromeda.office.cursor.biz:7788 -
    *:7789 -
EOM

Category:  Global config directives
Last modified by: Kevin Walsh
Modification date: Wednesday 8 November 2006 at 5:11 PM (EST)
Home  |  Legal nonsense  |  Privacy policy  |  Contact us