![]() |
| > Home > Documentation > Latest documentation > Global config directives > TcpMap |
|
TcpMapSpecify which ports Internet-domain ports Interchange server should run on if Inet_Mode is switched on. Synopsis
ScopeThis 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. DescriptionThe 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 "-". ExampleThe following makes Interchange listen on three ports.
To manage a large number of ports easier, the "here document" capability of the Interchange configuration syntax can be used. For example:
|
| Home | Legal nonsense | Privacy policy | Contact us |