man.html
Man.html is a CGI file that reads manual files under /sys/man/
and converts them to html format.
These manual files include lines such that
href="/sys/man/preface.html" href="/sys/man/1/INDEX.html" ACTION="/magic/man2html"I want to handle request that comes from these files without changing them.
Assuming we have
/doc/man/man.html # executablein httpd space, we need two rewrite rules in $web/etc/rewrite:
/sys/man /man /magic/man2html /manand a line in $web/etc/handler:
/man/* text/html 0 /doc/man/man.html
You will find the live example: http://plan9.aichi-u.ac.jp/man/