Which of the following are logging directives in Apache HTTPD? (Choose two.)
Which of the following are logging directives in Apache HTTPD? (Choose two.)
Logging directives in Apache HTTPD are used to configure log files and manage what gets logged by the server. CustomLog is used to define the file for access logs, specifying where details about incoming requests and server responses are stored. ErrorLog is used to define the file where errors and warnings encountered during server operation are logged. TransferLog, while technically a valid directive, is an older alternative syntax for CustomLog and is not commonly used in newer configurations. ServerLog and VHostLog are not valid directives in Apache HTTPD.
Actually TransferLog, ErrorLog and CustomLog exists. I would go for ErrorLog and CustomLog as they feel more commonly used to me.
I think A and B are correct. According to the documentation of the module mod_log_config there's 3 directives: TransferLog, CustomLog and LogFormat. Even though ErrorLog is one of the main options for logs, not sure if that would be the right one. If the question has 2 options, I'd go for A and B. If there's 3 I'd add ErrorLog all right. http://httpd.apache.org/docs/current/mod/mod_log_config.html
B and C are correct, because in the exam there is no TransferLog option to chose, only ErrorLog and CustomLog
cat /etc/apache2/sites_available/000-default.conf ist custom log and error log
Even in the whole Apache conf directory Transfer doesn't seem to appear by default but Error and Custom do. egrep -r 'TransferLog|CustomLog|ErrorLog' /etc/apache2/*
B and C are correct. https://httpd.apache.org/docs/2.4/logs.html
i think the question is malformed and should say, Choose three
No, in the real exam there is no TransferLog option as answer
# Journal personnalisé avec alias de format LogFormat "%h %l %u %t \"%r\" %>s %b" common CustomLog "logs/access_log" common # Journal personnalisé avec chaîne de format explicite CustomLog "logs/access_log" "%h %l %u %t \"%r\" %>s %b"
Qouting hobokabobo: Actually TransferLog, ErrorLog and CustomLog exists. I would go for ErrorLog and CustomLog as they feel more commonly used to me.
Chatgpt: The logging directives in Apache HTTPD are: A. TransferLog C. ErrorLog Therefore, the correct options are A and C. Explanation: TransferLog: This directive is used to specify the log file for recording the access logs. It defines the file where the details of incoming requests and server responses are logged. ErrorLog: This directive is used to specify the log file for recording the error logs. It defines the file where Apache HTTPD records errors and warnings encountered during server operation. The options B, D, and E (CustomLog, ServerLog, and VHostLog) are not valid logging directives in Apache HTTPD.