File: sample.conf

package info (click to toggle)
libapache2-mod-log-slow 1.0.8-3.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 144 kB
  • sloc: ansic: 824; makefile: 33
file content (32 lines) | stat: -rw-r--r-- 874 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# sample mod_log_slow configuration
#
# Copyright (C) 2008-2009 Yoichi Kawasaki All rights reserved.
# www.yk55.com
#

## load module
LoadModule log_slow_module modules/mod_log_slow.so

## (Server) mod_log_slow configuration
#LogSlowEnabled Off
#LogSlowLongRequestTime 1000
#LogSlowFileName /usr/local/apache/logs/slow_log

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot /usr/local/apache/htdocs
    ErrorLog logs/error_log

    LogLevel debug
    CustomLog logs/access_log common
    CustomLog logs/transfer_log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{logslow-id}n\" \"%{logslow-time}n\""

    ## (VirtualHost) mod_log_slow configuration
    LogSlowEnabled On
    LogSlowLongRequestTime 100
    LogSlowFileName /usr/local/apache/logs/slow_log
    LogSlowTimeFormat "[%Y-%m-%d %H:%M:%S]"
    LogSlowBufferedLogs Off

</VirtualHost>