Posts Tagged ‘apache’

Apache – SendFile

10月 11th, 2009

運用 kernel 裡的 sendfile (功能)支援,傳送檔案予客戶端。
預設值為 On,可用於 server config, virtual host, directory, .htaccess。

» Read more: Apache – SendFile

Apache – Memory-mapping

10月 10th, 2009

作/譯者:nicaliu at gmail dot com
(本文參考 apache 網站文件與 man page 整理而成,僅作筆記用途)

有時 Apache 2.x 需視傳送檔的內容,瞭解是否要在伺服器端作些處理時,會對檔案作記憶體映射 (memory map) 的動作 – 在底層作業系統支援 mmap 的情況下。此時,系統管理者可以利用 EnableMMAP 控制傳送檔案時是否使用 memory-mapping。預設值為 on,如伺服器檔案系統使用 NFS 掛載,請切為 off。

» Read more: Apache – Memory-mapping

自訂 Apache 裡的 Error Page

2月 24th, 2009

譯者:Nica < nicaliu at gmail dot com >
對所有提供網頁功能的網站來說,或早或晚幾乎不可避免的就是被導向一個不存在的 URL,可能是因為打錯位址、錯誤的鏈結,或是安裝了不正確的 script。通常,對跑 Apache 的伺服器來說,瀏覽網頁的訪客會接收到標準的 error page 。一般來說,這類型的資訊對訪客來說是沒有任何幫助的。此外,預設的 error page 並未提供任何的瀏覽導引選項。唯一的方式就是由訪客點選其瀏覽器上的倒退鍵回到上一頁。不過這只有在假設現今使用者都知道要按倒退鍵時才行得通,一個良善的使用者介面應該要有其它選項的。
» Read more: 自訂 Apache 裡的 Error Page

Apache -MaxClient

2月 19th, 2009

譯者:Nica < nicaliu at gmail dot com >
【Nica 註:這是 httpd.conf 檔裡的設定指令!~】

Description:    Maximum number of connections that will be processed simultaneously
Syntax:    MaxClients number
Default:    See usage for details
Context:    server config
Status:    MPM
Module:    beos, prefork, worker
» Read more: Apache -MaxClient

Apache – ServerTokens

2月 18th, 2009

譯者:Nica < nicaliu at gmail dot com >
【Nica 註:這是 httpd.conf 檔裡的設定指令!~】

Description:    Configures the Server HTTP response header
Syntax:    ServerTokens Major|Minor|Min[imal]|Prod[uctOnly]|OS|Full
Default:    ServerTokens Full
Context:    server config
Status:    Core
Module:    core
» Read more: Apache – ServerTokens

Apache – TraceEnable

2月 18th, 2009

譯者:Nica < nicaliu at gmail dot com >
【Nica 註:這是 httpd.conf 檔裡的設定指令!~】

Description:    Determines the behaviour on TRACE requests
Syntax:    TraceEnable [on|off|extended]
Default:    TraceEnable on
Context:    server config
Status:    Core
Module:    core
Compatibility:    Available in Apache 1.3.34, 2.0.55 and later
» Read more: Apache – TraceEnable

Apache HTTP Server 的安全性

2月 16th, 2009

譯者:Nica < nicaliu at gmail dot com >

Apache HTTP Server 是 Red Hat Enterprise Linux 下最穩也最安全的服務之一。擁有超多的選項與技術,可用來加強 Apache HTTP Server 的安全 – 因為太多,無法在此一一敘述。
» Read more: Apache HTTP Server 的安全性