/usr/share/doc/klone/examples/kloned-accesslog.conf is in klone 2.1.0~rc1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | server_list main
allow_root yes
# use syslog for error logging
log
{
type syslog
syslog.facility LOG_LOCAL0
}
main
{
model prefork
type http
addr.type IPv4
addr.port 8080
# document root
dir_root /path/to/dir/www
# main server access log (syslog)
access_log
{
type syslog
syslog.facility LOG_LOCAL0
# prefix of all log messages
prefix [access_main]
# don't log images and css
dontlog *.css
dontlog *.ico
dontlog *.gif
dontlog *.png
dontlog *.jpg
}
# virtual host, applies when Host: one.example.com
one.example.com
{
# virtual host document root
dir_root /path/to/vhost/www
# file based access log
access_log
{
type file
file.basename /tmp/access_wiki_log
prefix [access_one]
# just log .zip files downloads that don't start with "test"
log *.zip
dontlog test*.zip
}
}
two.example.com
{
# virtual host document root
dir_root /path/to/vhost/two/www
# inherits access_log setting of the main server
}
three.example.com
{
# virtual host document root
dir_root /path/to/vhost/three/www
# access log disabled
access_log no
}
}
|