2006-12-20 18:01:15 +01:00
|
|
|
#
|
|
|
|
# The following directives define some format nicknames for use with
|
|
|
|
# a CustomLog directive.
|
|
|
|
#
|
2019-01-07 09:22:38 +01:00
|
|
|
# https://httpd.apache.org/docs/2.4/mod/mod_log_config.html
|
2006-12-20 18:01:15 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Format string: Nickname:
|
|
|
|
#
|
|
|
|
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
|
|
|
LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
|
|
|
|
LogFormat "%{Referer}i -> %U" referer
|
|
|
|
LogFormat "%{User-agent}i" agent
|
|
|
|
LogFormat "%h %l %u %t \"%r\" %>s %b \
|
|
|
|
\"%{Referer}i\" \"%{User-Agent}i\"" combined
|
|
|
|
LogFormat "%v %h %l %u %t \"%r\" %>s %b \
|
|
|
|
\"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
|
|
|
|
|
|
|
|
# To use %I and %O, you need to enable mod_logio
|
|
|
|
<IfModule mod_logio.c>
|
|
|
|
LogFormat "%h %l %u %t \"%r\" %>s %b \
|
|
|
|
\"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
# Use one of these when you want a compact non-error SSL logfile on a virtual
|
|
|
|
# host basis:
|
|
|
|
<IfModule mod_ssl.c>
|
|
|
|
Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \
|
|
|
|
\"%r\" %b" ssl_common
|
|
|
|
Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \
|
|
|
|
\"%r\" %b \"%{Referer}i\" \"%{User-Agent}i\"" ssl_combined
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
|