Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 85817 invoked from network); 14 Dec 2008 14:47:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2008 14:47:39 -0000 Received: (qmail 14633 invoked by uid 500); 14 Dec 2008 14:47:41 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 14611 invoked by uid 500); 14 Dec 2008 14:47:41 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 14601 invoked by uid 99); 14 Dec 2008 14:47:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Dec 2008 06:47:40 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of 0.fractalus@gmail.com designates 74.125.78.149 as permitted sender) Received: from [74.125.78.149] (HELO ey-out-1920.google.com) (74.125.78.149) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Dec 2008 14:47:26 +0000 Received: by ey-out-1920.google.com with SMTP id 4so248493eyg.48 for ; Sun, 14 Dec 2008 06:47:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type; bh=9zijGazVwGz+ZlJIiUS2IK6mZr9iSQgvMs97Qu4h/50=; b=gkm17LJEIjucztRshn+WJNiJkzaBzPL0nhFj6Y3JzgPoEMz0KWS7xtEcwBaQFtBJX5 WT+oUjUJxuP2oyWtKU73YIDrsRHKHyrmoB3zWGfPjmuwFo4l5aEeYG/cY7q81hjfYTeV /9lnvia1GPQRMHw+A5Af4UATIeOLKe7vcujFY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; b=Tx7Nmgw8pNVp8V7cnRp+/xE+5H1fYiPGT8j1v4OBBOyoy9XCB8lFSSgx9+1XUz05a+ QeijB9oQ98aqYT18ecO8ZBzNgJGKs6qy6LYtyVDMotemOZOGKmtbNzqlGh3DogOQWHnX OR82J0T15j8NmxvTPYBXQ34Ch+BIE/HAacdMc= Received: by 10.210.121.8 with SMTP id t8mr3632854ebc.80.1229266025102; Sun, 14 Dec 2008 06:47:05 -0800 (PST) Received: from ?192.168.1.2? (c-71-228-123-41.hsd1.nm.comcast.net [71.228.123.41]) by mx.google.com with ESMTPS id 20sm820645eyk.4.2008.12.14.06.47.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 14 Dec 2008 06:47:04 -0800 (PST) Message-ID: <49451C48.2050800@gmail.com> Date: Sun, 14 Dec 2008 07:46:32 -0700 From: Morgan Gangwere <0.fractalus@gmail.com> User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: users@httpd.apache.org Subject: Re: Disable logging of invalid requests References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------000203070608040008040501" X-Virus-Checked: Checked by ClamAV on apache.org --------------000203070608040008040501 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Joshua Slive wrote: > On Thu, Dec 11, 2008 at 11:32 PM, Mitar wrote: >> Hi! >> >> Is there a way to disable logging of invalid requests to an HTTP >> server (which result in a 501 response code)? I would like to log only >> specific URLs and I am using SetEnvIf with CustomLog to do that, like: >> >> SetEnvIf Request_URI "^/$" log_request=yes >> SetEnvIf Request_URI "^/index.html$" log_request=yes >> >> CustomLog "/var/log/httpd-access.log" common env=log_request >> CustomLog "/dev/null" common env=!log_request >> >> But the problem is that those invalid requests are still logged to >> httpd-access.log file. > > No, some kinds of invalid requests will short-circuit the standard > request processing for security reasons. (You don't want to run a > bunch of complex code on input that may be deliberately trying to > break you.) Part of the code that gets short-circuited is the stuff > that allows you to do log exclusions. > Well, more accurately, this is kinda backwards. According to the "documentation", the syntax for SetEnvIf is SetEnvIf (statement) (statement) (varname) You're acctually //setting// a variable here to a particular //value//. if this is possible please let me know, as i could use this, as I'm having 0 luck getting CustomLog to work. -- Morgan Gangwere Unknown Software http://sonof.bandit.name/ Member, INCOSE [ incose.org ] PACA [ paca.org ] and NMUG [ nmug.net ] [indrora@boxly ~]#_ Find me on FreeNode! irc.freenode.net ~indrora on ##linux --------------000203070608040008040501 Content-Type: text/x-vcard; charset=utf-8; name="0_fractalus.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0_fractalus.vcf" begin:vcard fn:Morgan Gangwere n:Gangwere;Morgan org:Unknown Software;Programming email;internet:0.fractalus@gmail.com title:Developer tel;work:+1 505 514 2863 note;quoted-printable:Identities:=0D=0A= Indrora on irc:=0D=0A= irc.freenode.net=0D=0A= =0D=0A= Various IM clients:=0D=0A= Yahoo: trogdor_t_b=0D=0A= GTalk(jabber): 0.fractalus@gmail.com=0D=0A= MSN: fractalscapes@passport.com=0D=0A= =0D=0A= H4x my modem!=0D=0A= uks-is.boldlygoingnowhere.org=0D=0A= There ARE open ports. x-mozilla-html:FALSE url:http://sonof.bandit.name version:2.1 end:vcard --------------000203070608040008040501 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------000203070608040008040501--