#!/bin/rc if(~ $1 ?*){ peep $0 exit } echo '
/sys/lib/httpd.rewrite
' cat /sys/lib/httpd.rewrite echo '
/etc/rewrite
' cat /etc/rewrite echo -n '
' pwd echo 'and the contents are:
' ls -l echo '
http://pc/~alice
should go to her home page
http://pc/~bob
should go to his home page
http://pc/~david
should go to "http://plan9.bell-labs.com"
/
should go to this document root
/test/
should go to this test page
/~carol/
should fail
/private
should go to https protocol and be authenticated.a.html
goes to loop.c.html
goes to loop.