Name

configure — Obsolete configuration program

Synopsis

configure {acct} {logacct} {D} {host...}

Description

configure creates a directory D with three subdirectories:

  • D /file contains public files.

  • D /httpd is an HTTP service.

  • D /ftpd is an FTP service.

The name D must start with a slash and must not contain any special characters. Normally D is /public. You can run the HTTP and FTP services under svscan by creating symbolic links in the svscan directory:

ln -s D /httpd D /ftpd /service

The services will start within one minute, and will be restarted upon reboot. You can use svc to control the services. configure arranges for the HTTP and FTP servers to chroot to D /file and to run under the uid and gid of acct . The name acct must not contain any special characters.

configure creates four logs:

  • The first line of D /httpd/log/status shows the current number of HTTP connections.

  • D /httpd/log/main is an automatically rotated log directory showing all HTTP connections and file retrieval attempts.

  • The first line of D /ftpd/log/status shows the current number of FTP connections.

  • D /ftpd/log/main is an automatically rotated log directory showing all FTP connections and file retrieval attempts.

The logs are owned by logacct . The corresponding multilog processes run under the uid and gid of logacct . The name logacct must not contain any special characters.

Structure of the public file area

When the HTTP server is asked to retrieve a file named f for a host named v, it looks in D /file/v/f. When the FTP server is asked to retrieve a file named f (or the HTTP server is not provided a host name), it looks in D /file/0/f. configure creates a file/0 directory and symbolic links from file/host to file/0 for each host that you specify. You should include your host's full name, IP addresses, and any abbreviated host names used locally, all in lowercase.

You can set up virtual hosts by creating more directories inside file.

Author

Original code and documentation by Daniel J. Bernstein. Documentation modernizations by Jonathan de Boyne Pollard.