[not loaded]PublicShow sourcenetwork.pl -- Configure the HTTP server

Change the default port on which the HTTP server listens. If the port is an integer, the server is available from all interfaces. The common alternative is localhost:Port, binding the server to th localhost network only. This is particularly intertesting if the same host runs a reverse proxy.

If host-detection does not work or this server is behind a reverse proxy, you may also need the public_host/public_port settings to tell ClioPatria where it can be reached.

The prefix setting rebases all paths on the server to the indicated path. Note that the prefix has no trailing /. E.g. a setting /demo changes the root of the server to /demo/. Rebasing a server is only possible if internal path dependencies use the HTTP path mechanism to find paths for internal services.

The setting workers sets the number of HTTP worker threads. See the link below for more info.

See also
- localhost.pl
- http_location_by_id/2 and http_link_to_id/3 for finding the locations of internal services.
- http://www.swi-prolog.org/howto/http/HTTPScale.html for more info on server scalability.