Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 68053 invoked from network); 26 Apr 2005 15:59:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Apr 2005 15:59:58 -0000 Received: (qmail 56720 invoked by uid 500); 26 Apr 2005 16:00:22 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 56702 invoked by uid 500); 26 Apr 2005 16:00:21 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 56688 invoked by uid 99); 26 Apr 2005 16:00:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from jilau1.colorado.edu (HELO jilau1.Colorado.EDU) (128.138.140.5) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 26 Apr 2005 09:00:21 -0700 Received: from jilau1.Colorado.EDU (localhost.localdomain [127.0.0.1]) by jilau1.Colorado.EDU (8.12.11/8.12.10) with ESMTP id j3QFxaG3018908 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 26 Apr 2005 09:59:36 -0600 Received: from localhost (ruprech@localhost) by jilau1.Colorado.EDU (8.12.11/8.12.11/Submit) with ESMTP id j3QFxaF7018904 for ; Tue, 26 Apr 2005 09:59:36 -0600 Date: Tue, 26 Apr 2005 09:59:36 -0600 (MDT) From: Peter Ruprecht To: users@httpd.apache.org In-Reply-To: <17604.194.151.119.130.1114152837.squirrel@194.151.119.130> Message-ID: References: <17604.194.151.119.130.1114152837.squirrel@194.151.119.130> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked Subject: [users@httpd] Re: how to prevent logging of proxy requests? X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > > > > Hi, > > > > I'm running apache 2.0.46 on RedHat Enterprise 3, with a normal web site > > and also a proxy server on the same host. I would like to separate the > > logging of proxy requests from the requests for the web site itself. If > > there's a way to completely disable logging for proxy requests that would > > be even better. > > > > I have played around a little bit with custom logging but it seems like > > an inelegant way to address what I want to do ... unless of course I > > haven't set it up in a smart way! > > Use SetEnvIf to separate the logging. See > http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#customlog at the > end of the CustomLog directive. > > Joost > Thanks for the pointer. This kind of construction seems to work pretty well: # see whether the Proxy-Connection HTTP header is set; if so set # apache environment variable SetEnvIf Proxy-Connection ^[a-zA-Z].* proxy-request CustomLog logs/access_log_proxy combined env=proxy-request CustomLog logs/access_log combined env=!proxy-request or if you want to discard log entries from proxy requests: CustomLog /dev/null combined env=proxy-request -Peter --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org