apach のログ設定

apacheのログをバーチャルドメイン毎に分ける設定から、すべてを一つファイルで管理する設定に変更
ただし、どこにドメインのアクセスログかを判りやすくする為にログの後ろにキーワードを付ける設定に変更
# vi /etc/apache2/conf.d/userlog.conf
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
# If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i
#
#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 “%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\” LOG1 ” combined.1
LogFormat “%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\” LOG2 ” combined.2
LogFormat “%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\” LOG3″ combined.3
LogFormat “%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\” IPBASE ” combined.ip
$