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