Follow-up [Re: Apache config [OT]]
David Cary Hart
Fedora at TQMcube.com
Tue Apr 26 16:24:34 UTC 2005
-------- Forwarded Message --------
> From: David Cary Hart <Fedora at TQMcube.com>
> To: For users of Fedora Core releases <fedora-list at redhat.com>
> Subject: Re: Apache config [OT]
> Date: Mon, 25 Apr 2005 13:00:56 -0400
>
> On Mon, 2005-04-25 at 10:45 -0600, Ashley M. Kirchner wrote:
> > I host several web sites that I develop. My problem is the
> > generated log statistics are skewed because of my connection to the
> > site, hits that get recorded because I'm testing a page or busy
> > creating. So while I know how to run an exclude statement on an
> > individual web site config file, what I'd really like is some way to
> > exclude it from ALL the sites through some global method. Right now,
> > each individual site config file has an exclude line in it for my IP(s)
> > and each new site that I host I have to manually add that in. Does
> > anyone know if there's a better way of doing this, if there's some way
> > to add it to the master httpd.conf file so that it applies to all the
> > virtual sites as well?
> Isn't the environment variable (SetEnvIf Remote_Addr "127\.0\.0\.1")
> global?
I got around to trying this myself. It does work I have:
In the main configuration:
SetEnvIf Remote_Addr "192\.168\.0\.[0-9]{1,3}" dontlog
Within the virtual containers:
CustomLog logs/access_v_tqm_log combined env=!dontlog
At some point, it probably makes more sense to use one log which can be either piped or post-processed,
--
Multi-RBL Check: http://www.TQMcube.com/rblcheck.htm
Kill Spam at the Source: http://www.TQMcube.com/spam_trap.htm
Today's Spam Trap Adds: http://www.TQMcube.com/BlockedToday
RBLDNSD HowTo: http://www.TQMcube.com/rbldnsd.htm
More information about the fedora-test-list
mailing list