summaryrefslogtreecommitdiff
path: root/files/modules.d/Gentoo/00_mod_log_config.conf
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2008-04-29 10:14:55 +0000
committerandreas <andreas@immerda.ch>2008-04-29 10:14:55 +0000
commit589f4f5e2d816807db0493f6ad36c31b8be2f87d (patch)
treec2563d283be20594b6dd5a595d947765e0b22ce6 /files/modules.d/Gentoo/00_mod_log_config.conf
parent15b347f668a6429501c5f14faed8546b1af006cb (diff)
${operatingsystem} = Gentoo not gentoo
Diffstat (limited to 'files/modules.d/Gentoo/00_mod_log_config.conf')
-rw-r--r--files/modules.d/Gentoo/00_mod_log_config.conf35
1 files changed, 35 insertions, 0 deletions
diff --git a/files/modules.d/Gentoo/00_mod_log_config.conf b/files/modules.d/Gentoo/00_mod_log_config.conf
new file mode 100644
index 0000000..2f4244c
--- /dev/null
+++ b/files/modules.d/Gentoo/00_mod_log_config.conf
@@ -0,0 +1,35 @@
+<IfModule log_config_module>
+# The following directives define some format nicknames for use with
+# a CustomLog directive (see below).
+LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
+LogFormat "%h %l %u %t \"%r\" %>s %b" common
+
+LogFormat "%{Referer}i -> %U" referer
+LogFormat "%{User-Agent}i" agent
+LogFormat "%v %h %l %u %t \"%r\" %>s %b %T" script
+LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i VLOG=%{VLOG}e" vhost
+
+<IfModule logio_module>
+# You need to enable mod_logio.c to use %I and %O
+LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
+LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" vhostio
+</IfModule>
+
+# The location and format of the access logfile (Common Logfile Format).
+# If you do not define any access logfiles within a <VirtualHost>
+# container, they will be logged here. Contrariwise, if you *do*
+# define per-<VirtualHost> access logfiles, transactions will be
+# logged therein and *not* in this file.
+CustomLog /var/log/apache2/access_log common
+
+# If you would like to have agent and referer logfiles,
+# uncomment the following directives.
+#CustomLog /var/log/apache2/referer_log referer
+#CustomLog /var/log/apache2/agent_logs agent
+
+# If you prefer a logfile with access, agent, and referer information
+# (Combined Logfile Format) you can use the following directive.
+#CustomLog /var/log/apache2/access_log combined
+</IfModule>
+
+# vim: ts=4 filetype=apache