/usr/web
/sys/lib/httpd.rewrite ?
/lib/namespace.httpd ?
listen
1. get pegasus-1.2.tgz
2. unpack
term% gunzip pegasus-1.2.tgz term% tar -xf pegasus-1.2.tarthen directory
pegasus will be created in the directory in which you execute tar.term% cd pegasus term% cd httpd term% mk lib term% mkThe default installation place is:
/usr/local/bin/386Create the directory and:
term% mk install
/usr/web/usr/web is a base directory on which Pegasus configures namespace.web to /adm/users if you do not run Pegasus as server mode./usr/web/doc /usr/web/etc /usr/web/mnt
bob, then/usr/bob/www/docis the recommended place.
/sys/lib/httpd.rewrite ?
/lib/namespace.httpd ?example/lib/namespace.httpdin the Pegasus distribution. However if you don't make CGI service,
bind /usr/bob/www/doc /usr/web/docwill be enough.
listenlisten. That is enough for small servers./rc/bin/service/tcp80The content is:
#!/bin/rc exec /usr/local/bin/$cputype/httpd $*with permission:
--rwxrwxr-x
bob. Make a HTML document/usr/bob/www/doc/index.htmland try to access using a browser.
/usr/bob/www/docHttpd will see the directory as
/docNote that we have two expression for same directory.
Pegasus rejects to send a file that begins with period `.'.
Besides above two generic rules you can define directories that can be controlled by IP or password. The control files are in
/usr/bob/www/etcFor details see access control.
alice will have her pages simply by placing index.html in/usr/alice/web/docwithout changing configuration files.
/~aliceIn alice's directory
/usr/alice/www/etcalice is allowed to have files for access-control to her web document.