Logo address

httpd

目次

2002/08/26

NAME

	httpd

SYNOPSIS

	httpd [-fmsuwM] [-t timeout] [-p port] [-c certificate] [-d domain] [-n namespace]
	[-r webroot] [-R rewrite] [[httpd] dummy ..  incalldir]

DESCRIPTION

Options

Remaining arguments are given by `listen' when httpd is called by listen, therefore don't specify.

Document root of server's main document can be at anywhere.
I recomment the place at:

	/usr/yourname/www/doc
The location is configured in namespace configuration file of httpd.
You will find example configuration in the distribution.

The standard location of httpd of Pegasus is /usr/local/bin/386.
Then typical way of execution is as bellow:
In case of server mode, write a line

	/usr/local/bin/386/httpd -s
in /bin/rc/cpurc.
In case of non-server mode, that is, if you want to execute httpd under listen, create
	/rc/bin/service/tcp80
and chmod 755 to this file, and write
	#!/bin/rc
	exec /usr/local/bin/$cputype/httpd  $*

Definition of names used in Pegasus manual

Service space
The http service of Pegasus is executed in the configured namespace.
The configuration is done in the configuration file (default /lib/namespace.httpd).
Document root
Document root is fixed to
/doc
in the service space.
Clients who access to Pegasus can access only to the files in the document space and the name is not begin with period. Other files in the service space can be accessed only via CGI programs.
Document space
The set of files bellow {/doc} in the service space.
URI redirection file
URI redirection is done in two level.
{/sys/lib/httpd.rewrite} is applied to all requests to Pegasus.
These requests are sifted out to the server's main document, server's virtual host's document and server's user's documents.
And then the request is redirected again by
/etc/rewrite
in service space. (This means virtual hosts and users are permitted to have
redirection file.) The former configures administrative redirections and directories of virtual
hosts. The latter describes the information of moved pages.
(Note that {/sys/lib/httpd.rewrite} is a system file and unable to touched without administrative privilege, on the other hands the file {/etc/rewrite} in service space is a file owned by the person who has created html documents.)

SEE ALSO

RELATED FILES