/usr/local/bin/$objtype/httpd
httpd [-Mfmsuw] [-t timeout] [-p port] [-c certificate] [-n namespace] [-R rewrite] [[httpd] dummy .. incalldir]
-m
: allow mount in $web/etc/namespace_80
-s
: execute httpd as server mode.
-u
: httpd is served as the user who invoked httpd.
-w
: httpd does not automatically open $home/web
to the public.
-M
: httpd is used with mon.
-t
: time out for CGI programs.
-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
/usr/yourname/www/docThe location is configured in namespace configuration file of httpd.
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 -sin
/bin/rc/cpurc
./rc/bin/service/tcp80and chmod 755 to this file, and write
#!/bin/rc exec /usr/local/bin/$cputype/httpd $*