What configuration directive of the Apache HTTPD server defines where log files are stored? (Specify ONE of the directives without any other options.)



Answer: ErrorLogTransferLogCustomLog

題解

Apache設定檔中可以利用「ErrorLog」命令來指定錯誤記錄的輸出檔案路徑。

如果是一般的記錄,「mod_log_config」這個模組提供的「TransferLog」命令可用來指定記錄檔的輸出路徑。「LogFormat」命令可以自訂記錄的格式,並也可替它定義一個暱稱。「TransferLog」命令會使用最近的「LogFormat」命令所定義的無暱稱格式。另外,「CustomLog」命令同樣可以用來指定記錄檔的輸出路徑,不過它還可以直接替該記錄檔指定一個記錄的格式或是要使用的記錄格式的暱稱。