From: Nishi Date: Mon, 7 Oct 2024 15:03:00 +0000 (+0000) Subject: add some wip docs X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=6111bc3f3850c712e32aa45fa2bfc2b3a757ca96;p=tewi.git add some wip docs git-svn-id: file:///raid/svn-personal/tewi/trunk@272 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Document/input/config/index.md b/Document/input/config/index.md new file mode 100644 index 0000000..e318d73 --- /dev/null +++ b/Document/input/config/index.md @@ -0,0 +1,4 @@ +\language ^en$ +# Configuration {User guide} +\language ^jp$ +# コンフィグ {ユーザーガイド} diff --git a/Document/input/directives/showport.md b/Document/input/directives/showport.md new file mode 100644 index 0000000..e53a0cc --- /dev/null +++ b/Document/input/directives/showport.md @@ -0,0 +1,12 @@ +\language ^en$ +# ShowPort/HidePort directive {Directives} +Shows/Hides the port in the default error page, and directory listing.\ +\ +Syntax: `ShowPort` \ +Syntax: `HidePort` \ +\language ^jp$ +# ShowPort/HidePort命令 {命令} +ポートをデフォルトのエラーページとファイルリストで出したり消したりします。\ +\ +構文: `ShowPort` \ +構文: `HidePort` \ diff --git a/Document/input/release/index.md b/Document/input/release/index.md index 5689abd..47d5be6 100644 --- a/Document/input/release/index.md +++ b/Document/input/release/index.md @@ -1,4 +1,11 @@ -\language en +\language ^en$ # New features in version $TCL:VERSION {Release notes} -\language jp -# Tewi HTTPd $TCL:VERSION の新機能 +## New directives +### MIMEFile +Supports the `mime.types` from the Apache HTTPd using `MIMEFile` directive. + +\language ^jp$ +# Tewi HTTPd $TCL:VERSION の新機能 {リリース情報} +## 新しい命令 +### MIMEFile +`MIMEFile`命令を使用してApache HTTPdの`mime.types`が使えるようになりました。 diff --git a/Server/server.c b/Server/server.c index 4f19070..f07d4da 100644 --- a/Server/server.c +++ b/Server/server.c @@ -77,7 +77,7 @@ typedef int socklen_t; #endif #ifndef S_ISDIR -#define S_ISDIR(x) ((x)&_S_IFDIR) +#define S_ISDIR(x) ((x) & _S_IFDIR) #endif extern struct tw_config config;