From: Nishi Date: Tue, 8 Oct 2024 12:35:07 +0000 (+0000) Subject: some config update X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=49d0100e17e8fd7ab41bfde08522a5826405311a;p=tewi.git some config update git-svn-id: file:///raid/svn-personal/tewi/trunk@279 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Document/input/config/index.md b/Document/input/config/index.md index e318d73..dbc3c88 100644 --- a/Document/input/config/index.md +++ b/Document/input/config/index.md @@ -1,4 +1,52 @@ \language ^en$ # Configuration {User guide} +Tewi HTTPd config gets parsed line by line.\ +Front tabs/spaces get ignored. + +## Example +``` +# This is a comment +# Listen to port 80 +Listen 80 + +# /var/www is the document root +DocumentRoot /var/www + +# Default MIME +MIMEType all application/octet-stream + +# Use mime.types from Apache HTTPd +MIMEFile /etc/mime.types + +# Show this file if it is in the directory +DirectoryIndex index.html +BeginDirectory /var/www + Allow all +EndDirectory +``` \language ^jp$ # コンフィグ {ユーザーガイド} +Tewi HTTPdのコンフィグは行ずつに処理されます。\ +先頭のタブ文字と空白文字は無視されます。 + +## 例 +``` +# これはコメントです +# ポート80にListenする +Listen 80 + +# /var/wwwにドキュメントが置かれている +DocumentRoot /var/www + +# デフォルトのMIME +MIMEType all application/octet-stream + +# Apache HTTPdのmime.typesを使用 +MIMEFile /etc/mime.types + +# このファイルがディレクトリにあったら、それを見せる +DirectoryIndex index.html +BeginDirectory /var/www + Allow all +EndDirectory +```