Logo address

ftp2html

目次

2006/08/23
2002/08/30

"ftp2html" is a tool that was developed to distribute files in the directory for anonymous ftp. To install "ftp2html", specify it in "execution handler".

Location

	/usr/web/bin/rc/ftp2html

Installation

In "$web/etc/handler" we write like this:
# path	mimetype	hctl	execpath arg ...
/netlib/*/index.html text/html 0 /bin/ftp2html

Description

"ftp2html" shows "README" if it exist in the directory requested from client, and in addition "ftp2html" shows "INDEX" if it exist. If "INDEX" is absent, "ftp2html" shows list of files and directory.

You can see the live example at http://plan9.aichi-u.ac.jp/netlib/

Format of INDEX

name
	content
	...
name
	content
	...
...
where "name" is a file name or subdirectory name. In case of directory name, the name must end with "/".
"content" is shown as it is.