From 3a6e200b553cc85da60520390f9bdfec5d64699d Mon Sep 17 00:00:00 2001 From: Nishi Date: Tue, 8 Oct 2024 12:27:15 +0000 Subject: [PATCH] adding documents git-svn-id: file:///raid/svn-personal/tewi/trunk@278 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Document/input/directives/allow.md | 14 ++++++++++ Document/input/directives/begindirectory.md | 12 +++++++++ Document/input/directives/beginif.md | 27 +++++++++++++++++++ Document/input/directives/beginvirtualhost.md | 12 +++++++++ Document/input/directives/chrootdirectory.md | 10 +++++++ Document/input/directives/forcelog.md | 10 +++++++ 6 files changed, 85 insertions(+) create mode 100644 Document/input/directives/allow.md create mode 100644 Document/input/directives/begindirectory.md create mode 100644 Document/input/directives/beginif.md create mode 100644 Document/input/directives/beginvirtualhost.md create mode 100644 Document/input/directives/chrootdirectory.md create mode 100644 Document/input/directives/forcelog.md diff --git a/Document/input/directives/allow.md b/Document/input/directives/allow.md new file mode 100644 index 0000000..9a335f3 --- /dev/null +++ b/Document/input/directives/allow.md @@ -0,0 +1,14 @@ +\language ^en$ +# Allow/Deny directive {Directives} +Controls which can access, and which cannot. Only accepts `all` for now.\ +Can be only used under the [Directory](begindirectory.html) section.\ +\ +Syntax: `Allow all` \ +Syntax: `Deny all` \ +\language ^jp$ +# Allow/Deny命令 {命令} +何がアクセスでき、またはできないかを指定します。今現在は`all`しか受け付けません。\ +[Directory](begindirectory.html)セクション下でのみ使用できます。\ +\ +構文: `Allow all` \ +構文: `Deny all` \ diff --git a/Document/input/directives/begindirectory.md b/Document/input/directives/begindirectory.md new file mode 100644 index 0000000..1230dd2 --- /dev/null +++ b/Document/input/directives/begindirectory.md @@ -0,0 +1,12 @@ +\language ^en$ +# BeginDirectory/EndDirectory directive {Directives} +Begins/Ends the Directory section.\ +\ +Syntax: `BeginDirectory path` \ +Syntax: `EndDirectory` \ +\language ^jp$ +# BeginDirectory/EndDirectory命令 {命令} +Directoryセクションを開始したり終了したりします。\ +\ +構文: `BeginDirectory パス` \ +構文: `EndDirectory` \ diff --git a/Document/input/directives/beginif.md b/Document/input/directives/beginif.md new file mode 100644 index 0000000..ccfab8c --- /dev/null +++ b/Document/input/directives/beginif.md @@ -0,0 +1,27 @@ +\language ^en$ +# BeginIf/BeginIfNot/EndIf directive {Directives} +Begins/Ends the If section.\ +BeginIf makes parser parse the directives inside the If section if the expression is true, otherwise makes it ignore them.\ +BeginIfNot is same with BeginIf, but makes it parse if False instead.\ +\ +Syntax: `BeginIf True|False|defined name` \ +Syntax: `BeginIfNot True|False|defined name` \ +Syntax: `EndIf` + +## Notes on defined names +`HAS_CHROOT` gets defined if Tewi HTTPd was compiled with `chroot(2)` support. \ +`HAS_SSL` gets defined if Tewi HTTPd was compiled with TLS/SSL support. \ + +\language ^jp$ +# BeginIf/BeginIfNot/EndIf命令 {命令} +Ifセクションを開始したり終了したりします。\ +BeginIfの場合、条件式が真の場合セクション内の命令がパースされます。それ以外の場合は無視されます。\ +BeginIfNotはその逆です。\ +\ +構文: `BeginIf True|False|defined 名前` \ +構文: `BeginIfNot True|False|defined 名前` \ +構文: `EndIf` + +## 定義された名前についての注釈 +Tewi HTTPdが`chroot(2)`サポートと共にコンパイルされている場合、`HAS_CHROOT`が定義されます。\ +Tewi HTTPdがTLS/SSLサポートと共にコンパイルされている場合、`HAS_SSL`が定義されます。 diff --git a/Document/input/directives/beginvirtualhost.md b/Document/input/directives/beginvirtualhost.md new file mode 100644 index 0000000..7669763 --- /dev/null +++ b/Document/input/directives/beginvirtualhost.md @@ -0,0 +1,12 @@ +\language ^en$ +# BeginVirtualHost/EndVirtualHost directive {Directives} +Begins/Ends the VirtualHost section.\ +\ +Syntax: `BeginVirtualHost host[:port]` \ +Syntax: `EndVirtualHost` \ +\language ^jp$ +# BeginVirtualHost/EndVirtualHost命令 {命令} +VirtualHostセクションを開始したり終了したりします。\ +\ +構文: `BeginVirtualHost ホスト名[:ポート]` \ +構文: `EndVirtualHost` \ diff --git a/Document/input/directives/chrootdirectory.md b/Document/input/directives/chrootdirectory.md new file mode 100644 index 0000000..e776a56 --- /dev/null +++ b/Document/input/directives/chrootdirectory.md @@ -0,0 +1,10 @@ +\language ^en$ +# ChrootDirectory directive {Directives} +Does `chroot(2)` into the directory.\ +\ +Syntax: `ChrootDirectory` \ +\language ^jp$ +# ChrootDirectory命令 {命令} +指定されたディレクトリに`chroot(2)`します。\ +\ +構文: `ChrootDirectory path` \ diff --git a/Document/input/directives/forcelog.md b/Document/input/directives/forcelog.md new file mode 100644 index 0000000..d74451c --- /dev/null +++ b/Document/input/directives/forcelog.md @@ -0,0 +1,10 @@ +\language ^en$ +# ForceLog directive {Directives} +Outputs a log. \ +\ +Syntax: `ForceLog content` \ +\language ^jp$ +# ForceLog命令 {命令} +ログを強制的に出します。\ +\ +構文: `ForceLog 内容` \ -- 2.43.0