Index  Up  <<  >>  


TcpMap

When running in INET mode, using tlink or the internal HTTP server, specifies the port(s) which will be monitored. by the MiniVend server. Default is 7786>

To use the internal HTTP server (perhaps only for password-protected queries), you can map a catalog to a port. If you had three catalogs running on the server www.minivend.com, named simple, sample, and search, you might have in the directive:

    TcpMap    7786 -  7787 simple 7788 sample 7789 search

NOTE: To map large numbers of ports, you can use the <<MARKER here document notation in minivend.cfg.

With this in effect, the internal HTTP server would map the following addresses:

    http://www.minivend.com:7786   mv_admin
    http://www.minivend.com:7787   simple
    http://www.minivend.com:7788   sample
    http://www.minivend.com:7789   search

NOTE: This does not pertain to the use of tlink, which still relies on the CGI SCRIPT_PATH.

To enable this, the SCRIPT_PATH aliases /simple, /sample, etc. must be set in the Catalog directive. This would look like:

  Catalog  simple  /home/minivend/catalogs/simple /cgi-bin/simple /simple


Index  Up  <<  >>