Logo address

httpd

目次

Location

	/usr/local/bin/$objtype/httpd

Synopsis

	httpd [-Mfmsuw] [-t timeout] [-p port] [-c certificate] [-n namespace] [-R rewrite] [[httpd] dummy ..  incalldir]

Options

-m: allow mount in $web/etc/namespace_80
-s: execute httpd as server mode.
Without this option httpd must be invoked by `listen'.
-u: httpd is served as the user who invoked httpd.
This option is effective only in server mode.
For details see server mode.
-w: httpd does not automatically open $home/web to the public.
-M: httpd is used with mon.
This option is effective only in server mode.
For details see server mode
-t: time out for CGI programs.
This option in intended to the protection for buggy CGI programs.
The default value is 5 seconds.
-p: port address. The default is 80
-c: path to certificate of PEM format.
-n: namespace configuration file. The default is /lib/namespace.httpd
-R: URI rewrite file. The default is /sys/lib/httpd.rewrite
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 located 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:
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  $*