[Info-vax] Apache log rotation

Paul Sture paul.nospam at sture.ch
Tue Aug 14 03:57:37 EDT 2012


On Mon, 13 Aug 2012 17:43:56 -0700, Neil Rieck wrote:

> On Sunday, August 12, 2012 6:47:25 AM UTC-4, Paul Sture wrote:
>> On Sat, 11 Aug 2012 07:12:23 -0700, Neil Rieck wrote:
>>
>> > But we have noticed that tabbed browsers expect favicon.ico to be
>> > available (probably in the browser's cache) so it can be used "to
>> > precede the web page title" on each tab.
>> 
>> For those of us who use tabbed browsers and the bookmarks toolbar the
>> icons give a very useful visual hint.
>> 
>> > Anyway, these two changes:
>> 
>> > http://www3.sympatico.ca/n.rieck/docs/ 
openvms_notes_apache.html#tweaks2012
>> 
>> > have cut the size of my log files by roughly 50% per day which I am
>> > assuming is consuming fewer system and network resources.
>> 
>> You can also exclude logging of various files:
>> 
>> http://www.webmasterview.com/2009/11/apache-log-cruft/
>> 
>> SetEnvIf Request_URI "^/wordpress/" cruft
>> SetEnvIf Request_URI "^/robots\.txt$" cruft
>> SetEnvIf Request_URI "^/favicon\.ico$" cruft
>> CustomLog /logs/example.com/access.log combined env=!cruft
>> 
> 
> Thanks, I know about log file filtering but think it is better to
> provide files like "favicon.ico" so browsers stop requesting them (think
> "baby birds"). Once I did this (and a couple of other things) the host
> system shifted from chaotic into an even grove. (the log file is now 50%
> smaller because the web-server is just better behaved)

I agree it's better to serve up something like favicon.ico.  I find 
filtering very useful when you are using a CMS theme that has a bunch of 
its own icons/images that clutter up the log.

Regarding an earlier comment about where browsers look for favicon, I 
just clicked on http://www3.sympatico.ca/n.rieck/ and though I see your 
favicon in the URL bar, it displays as an empty square in both the tab 
and the history.  This is in Firefox 14.01 on Linux.

I do not know what causes this but see it on a (very) few other sites too.

-- 
Paul Sture



More information about the Info-vax mailing list