D. J. Bernstein
Internet publication
publicfile

The configure program

configure sets up a public file area to be served by HTTP and FTP.

Interface

     configure acct logacct D host ...

configure creates a directory D with three subdirectories:

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 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.