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:

    *:7786   mv_admin
    *:7787   simple
    *:7788   sample
    *: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

If you want to bind to specific IP addresses, add them in the same fashion that you would an Apache Listen directive:

        TcpMap <<EOF
                127.0.0.1:7786         -
                www.minivend.com:7787  -
        EOF

NOTE: As usual, the EOF should be at the beginning of a line with no leading or trailing whitespace.


Index  Up  <<  >>