]> Git repositories of Nishi - tewi.git/commitdiff
some config update
authorNishi <nishi@nishi.boats>
Tue, 8 Oct 2024 12:35:07 +0000 (12:35 +0000)
committerNishi <nishi@nishi.boats>
Tue, 8 Oct 2024 12:35:07 +0000 (12:35 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@279 8739d7e6-ffea-ec47-b151-bdff447c6205

Document/input/config/index.md

index e318d7342ee88e764e21044428d6a60928232747..dbc3c887e48f8c1330ae136e6c254bc01bd21f9e 100644 (file)
@@ -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
+```