[CTX]
[ALL]
Configuration of DeleGate by Users
ユーザーによる DeleGate の設定
DeleGate の設定方法は柔軟で、それは、DeleGate 管理者だけではなく、
ユーザー (元 HTTP-DeleGate 上の WWW リソース提供者) も行えるように、
DeleGateは、ユーザーが定義した設定パラメーターを、
要求処理時毎に読み込むことができます。
そのようなパラメーターは、MOUNT されたローカルファイルシステム上の、
"+=parameters" ファイルの書式で、
拡張子に ".dgp" を持つファイルで指定する必要があります。
それは、-Fcgi と同様に動作しますが、
新しいプロセスを生成しないで、効率を上げます。
例)
ニュースサーバー N を、http://delegate/news/servN/ に MOUNT する
-
(1) 起動時のパラメーターによる
MOUNT="/news/servN/* nntp://nntpserverN/*"
-
(2) CGI-DeleGate による
MOUNT="/news/* cgi:/dirPath/*"
-
[the contents of file:/dirPath/servN/welcome.cgi]
delegated -Fcgi MOUNT="/* nntp://nntpserverN/*"
-
(3) ".dgp" ファイルによる
MOUNT="/news/* file:/dirPath/*"
-
[the contents of file:/dirPath/servN/welcome.dgp]
MOUNT="/* nntp://nntpserverN/*"
(この機能は、FTP のような他のプロトコルに適用するべきです...)