202-450 Exam QuestionsBrowse all questions from this exam

202-450 Exam - Question 33


FILL BLANK -

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

Show Answer
Correct Answer:

The configuration directive in the Apache HTTPD server that defines where log files are stored is ErrorLog. The ErrorLog directive specifically sets the file name and location for logging server errors. CustomLog, on the other hand, is used to log requests and typically requires a log format specification. For the purpose of defining where error logs are stored, ErrorLog is the correct directive.

Discussion

4 comments
Sign in to comment
FabelhaftZuverlaessigerGorilla
Jul 22, 2020

What's about CustomLog?

Adonist
Aug 11, 2020

I think might work as well. It's asking to type one, so could be any of them in fact.

MBison
Apr 13, 2021

https://httpd.apache.org/docs/current/logs.html ErrorLog CustomLog TransferLog

Armina
Feb 13, 2022

ErrorLog CustomLog or TransferLog for example: ErrorLog /var/log/httpd/error_log CustomLog logs/access_log common or TransferLog logs/access_log

jorgevisentini
Jan 21, 2024

The right answer is ErrorLog ErrorLog - The ErrorLog directive sets the name of the file to which the server will log any errors it encounters. If the file-path is not absolute then it is assumed to be relative to the ServerRoot. CustomLog - The CustomLog directive is used to log requests to the server. A log format is specified, and the logging can optionally be made conditional on request characteristics using environment variables. https://httpd.apache.org/docs/current/mod/core.html#errorlog