January 2019
Beginner
318 pages
8h 23m
English
In this section, we are going to learn about common log format. The following syntax shows the configuration for the access log:
LogFormat "%h %l %u %t \"%r\" %>s %b" nick_name CustomLog logs/access_log nick_name
This string will define a nickname and then it will associate that nickname with the log format string. The log format string is made of percent directives. Each percent directive tells the server to log specific information. This string may contain literal characters. Those characters will get copied directly in log output.
The CustomLog directive will set up a new log file with the help of a defined nickname. The filename for the access log is relative to the ServerRoot, unless it begins with a slash.
The configuration ...
Read now
Unlock full access