Kenji Arisawa E-mail: arisawa@aichi-u.ac.jp Aichi University Kurozasa 370, Miyoshi-cho Aichi, Japan 2002/04/16Powered by Pegasus
namespace.httpd
/lib/namespace.httpd
は httpd の実ホストの名前空間を編成します。
ここで編成した名前空間は、/usr/web/doc
と /usr/web/etc
を除いて、仮想ホストおよびユーザの名前空間にも引き継がれます。
以下に、/usr/bob/www/doc
を実ホストのドキュメント、/usr/bob/www/etc
を実ホストの制御ファイルを置くディレクトリとした時の /lib/namespace.httpd
の標準的な設定を載せて置きます。
# At this stage, namespace is already configured using /lib/namespace # We can add something to it. # # Here /usr/web is our webroot # and `alice' in the commants stands for any user # # In case that `/~alice' is requested, # bind /usr/alice/web /usr/web/mnt # is internally executed at the beginning. # # configure our basic namespace # bind -a /usr/web/bin/$cputype /bin bind -a /usr/web/bin/rc /bin bind /sys/log/http /usr/web/sys/log/http bind /sys/lib /usr/web/sys/lib bind /sys/man /usr/web/sys/man bind /lib /usr/web/lib bind /bin /usr/web/bin bind /rc/lib /usr/web/rc/lib bind -c #e /usr/web/env bind #c /usr/web/dev # bind /proc /usr/web/proc bind -a #I /usr/web/net mount -a #s/cs /usr/web/net mount -a #s/dns /usr/web/net # # bind the main document to /usr/web/doc # change this line to make suitable to your environment # # Note this configuration is what I recommend, not what I am doing # Mine is complicated for historical reason. # bind /usr/bob/www/doc /usr/web/doc bind /usr/bob/www/etc /usr/web/etc # In case of `~' , # /usr/web/mnt is internally added to /usr/web # Let /usr/web be our webroot then # httpd internally execute the followings: # bind /usr/web / # cd / # to cut off everything not mounted below /usr/web #