Icon Running the web server

xttpd is an XTide web server. It provides web-based access to XTide's tide predictions by allowing a web browser to speak directly to the XTide program in HTTP. xttpd can replace httpd or it can co-exist with one. Usage: xttpd [port] [...other xtide settings switches...].

If you run xttpd with no command line arguments, it will assume that it is replacing httpd and try to bind port 80. If you want it to co-exist with an existing server, or if you do not have privilege to get port 80, give it the port number as the first command line argument:

% xttpd 8080

You will then need to link it up as http://www.wherever.org:8080/ instead of just http://www.wherever.org/, but otherwise, no damage done. xttpd will try to set its UID to 'nobody' once the port is established, but will issue a warning and continue with the default user ID if this fails.

You can set the address for feedback either in config.hh or with the environment variable XTTPD_FEEDBACK.

xttpd will produce a small number of zombie processes during normal operation. They are cleaned up after each new connection, so there is no cause for concern.

Hosts connecting to xttpd will be logged to standard output.

Since a web site is supposed to be self-explanatory, the process of using xttpd will not be documented here. If there are problems with people of normal intelligence not being able to figure out how to use it, these should be reported to me as bugs, and the explanatory text in the web server will be updated accordingly.