On Fri, May 13, 2005 at 04:19:54PM +0000, simon stratford wrote:
> CustomLog /usr/local/apache/logs/access_log combined env=!dontlog
>
> Do I issure the above on the command line? I tried it and it said that the
> event wasnt found. Its deffo on in the httpd.conf does this have to be in a
> particular place?
>
> ss
This directive goes inside your httpd.conf file and inside of a <VirtualHost>
block. You should see something like:
<VirtualHost 11.22.33.44>
DocumentRoot /usr/local/apache/htdocs/mydomain
ServerName www.mydomain.org
ServerAlias mydomain.org
SetEnvIf Request_URI ".*\/0.?\.gif$" dontlog
CustomLog "|/usr/local/apache/bin/rotatelogs
/usr/local/apache/logs/mydomain/access_log 86400" combined env=!dontlog
ErrorDocument 404 /404.php
</VirtualHost>
HTH.
-ken
>
> >From: Ken Schweigert <[EMAIL PROTECTED]>
> >On Fri, May 13, 2005 at 02:00:07PM +0000, simon stratford wrote:
> >> Little bit off topic but my logfiles are filling up my server at an
> >> alarming rate (800 meg for two weeks), I`m not much use on Apache, so
> >can
> >> someone give me an idiots guide to stop loggin images and style sheets
> >etc.
> >>
> >> I`ve edited the httpd.conf files and added
> >>
> >> SetEnvIf Request_URI "\.gif$" dontlog
> >>
> >> Then rebooted but it appears to still be loggin gif images. I don't need
> >> .js, .css, .jpg
> >>
> >> Any help would be great.
> >
> >You also need to modify the virtual's CustomLog directive. Something like:
> >
> >CustomLog /usr/local/apache/logs/access_log combined env=!dontlog
> >
> >--
> >Ken Schweigert, IT Department
> >Byte Productions, LLC
> >http://www.byte-productions.com
--
Ken Schweigert, IT Department
Byte Productions, LLC
http://www.byte-productions.com
+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------