1 src]
2 <?
3 <VirtualHost *:80>
4 ServerAdmin root@bitweaver.org
5 ServerName www.bitweaver.org
6 DocumentRoot /home/bitweaver/live
7 ErrorLog logs/bitweaver/error_log
8 # Do not log images and junk - adjust to your site since file sharing abuses can be detected this way
9 SetEnvIf Request_URI "(\.gif|\.png|\.jpg|\.css|\.js|jscompressor.php|bitversion.txt|\.ico|ie7-load\.htc)$&" nolog
10 # Pull out all the bots and log them to a different place
11 SetEnvIf User-Agent ".*(Accoona|almaden|Bot|Baiduspider|ichiro|JemmaTheTourist|Netcraft|bot|oogle|dir.com|Yahoo|Slurp|slurp|herlock|cfetch|Crawler|ia_archiver|Teoma|LinkWalker|grub|sohu|nusearch|updated.com|voyager|www.walhello.com).*" NOLOG=nolog
12 SetEnvIf User-Agent ".*(Accoona|almaden|Bot|Baiduspider|ichiro|JemmaTheTourist|Netcraft|bot|oogle|dir.com|Yahoo|Slurp|slurp|herlock|cfetch|Crawler|ia_archiver|Teoma|LinkWalker|grub|sohu|nusearch|updated.com|voyager|www.walhello.com).*" BOT=bot
13 # Set up the log format to use mod_cookie
14 LogFormat "%h %l %u %t \"%r\" %>s %b %v \"%{Referer}i\" \"%{User-agent}i\" \"%{Cookie}n\"" combinedcookie
15 # CustomLog pipes through cronolog and neatly organizes your log files by year. Having all _access and _error for 1 year in one directory is a good balance
16 CustomLog &"|/usr/local/sbin/cronolog --symlink=/var/log/httpd/bitweaver/access_log /var/log/httpd/bitweaver/%Y/%Y-%m-%d-access_log&" combinedcookie env=!nolog
17 CustomLog &"|/usr/local/sbin/cronolog --symlink=/var/log/httpd/bots/bot_log /var/log/httpd/bitweaver/bots/%Y/%Y-%m-%d_bot_access_log&" combinedcookie env=bot
18
19 CookieDomain .bitweaver.org
20 CookieExpires &"1 months&"
21 CookieName mod_usertrack
22 CookieTracking on
23
24 </VirtualHost>
25 ?>
26
Zatim jsem nezkousel v praxi, ale urcite sem hodim vysledky :)