312-49 · Question #86
The Apache server saves diagnostic information and error messages that it encounters while processing requests. The default path of this file is usr/local/apache/logs/error.log in Linux. Identify the
The correct answer is B. [Wed Oct 11 14:32:52 2000] [error] [client 127.0.0.1] client denied by server configuration:. Apache produces two main log types with distinct formats. The Access Log records client requests and follows the Combined Log Format: IP - user [date] "request" status bytes. The Error Log records server errors and follows the format: [date/time] [severity level] [client IP] erro
Question
The Apache server saves diagnostic information and error messages that it encounters while processing requests. The default path of this file is usr/local/apache/logs/error.log in Linux. Identify the Apache error log from the following logs.
Options
- A127.0.0.1 - frank [10/Oct/2000:13:55:36-0700] "GET /apache_pb.grf HTTP/1.0" 200
- B[Wed Oct 11 14:32:52 2000] [error] [client 127.0.0.1] client denied by server configuration:
- D127.0.0.1 --[10/Apr/2007:10:39:11 +0300] ] [error] "GET /apache_pb.gif HTTP/1.0' 200
How the community answered
(38 responses)- A8% (3)
- B87% (33)
- D5% (2)
Explanation
Apache produces two main log types with distinct formats. The Access Log records client requests and follows the Combined Log Format: IP - user [date] "request" status bytes. The Error Log records server errors and follows the format: [date/time] [severity level] [client IP] error message. Option B clearly matches the Apache error log format - it begins with a timestamp in square brackets, followed by the severity level [error], followed by the client IP [client 127.0.0.1], and then the diagnostic message. Options A and D resemble access log entries with HTTP status codes.
Topics
Community Discussion
No community discussion yet for this question.