]> git.pld-linux.org Git - packages/apache.git/blob - apache-mod_log_config.conf
- allow work without systemd-units
[packages/apache.git] / apache-mod_log_config.conf
1 # $Id$
2 LoadModule log_config_module modules/mod_log_config.so
3
4 <IfModule log_config_module>
5         #
6         # The following directives define some format nicknames for use with
7         # a CustomLog directive (see below).
8         #
9         # NOTE: In httpd 2.0, unlike 1.3, the %b and %B format strings do not
10         # represent the number of bytes sent to the client, but simply the size in
11         # bytes of the HTTP response (which will differ, for instance, if the
12         # connection is aborted, or if SSL is used). The %O format provided by
13         # mod_logio will log the actual number of bytes sent over the network.
14         #
15         # So if you need to log actual bytes sent (for example log analyzing),
16         # install mod_logio and use %O instead of %b.
17
18         LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
19         LogFormat "%h %l %u %t \"%r\" %>s %b" common
20
21         <IfModule logio_module>
22                 # You need to enable mod_logio.c to use %I and %O
23                 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
24         </IfModule>
25
26         #
27         # The location and format of the access logfile (Common Logfile Format).
28         # If you do not define any access logfiles within a <VirtualHost>
29         # container, they will be logged here.  Contrariwise, if you *do*
30         # define per-<VirtualHost> access logfiles, transactions will be
31         # logged therein and *not* in this file.
32         #
33         CustomLog logs/access_log common
34
35         #
36         # If you prefer a logfile with access, agent, and referer information
37         # (Combined Logfile Format) you can use the following directive.
38         #
39         #CustomLog logs/access_log combined
40 </IfModule>
This page took 0.0317 seconds and 3 git commands to generate.