From owner-freebsd-questions Tue Sep 18 21:43:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from chmls05.mediaone.net (chmls05.mediaone.net [24.147.1.143]) by hub.freebsd.org (Postfix) with ESMTP id 21BDE37B407 for ; Tue, 18 Sep 2001 21:43:49 -0700 (PDT) Received: from canada.acadia.ne.mediaone.net (acadia.ne.mediaone.net [65.96.185.189]) by chmls05.mediaone.net (8.11.1/8.11.1) with ESMTP id f8J4hjr02966; Wed, 19 Sep 2001 00:43:46 -0400 (EDT) Received: (from leblanc@localhost) by canada.acadia.ne.mediaone.net (8.11.5/8.11.5) id f8J4e7q86599; Wed, 19 Sep 2001 00:40:07 -0400 (EDT) (envelope-from leblanc) Date: Wed, 19 Sep 2001 00:40:07 -0400 From: Louis LeBlanc To: freebsd-questions@FreeBSD.org, freebsd-questions@FreeBSD.org Subject: Re: NEW VIRUS - Read this!(No the virus isn't included!) Message-ID: <20010919004006.A85981@acadia.ne.mediaone.net> Reply-To: freebsd-questions@FreeBSD.org Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <00f001c1409d$841b2860$c8e1b3d8@liquidground.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <00f001c1409d$841b2860$c8e1b3d8@liquidground.com> User-Agent: Mutt/1.3.22.1i X-bright-idea: Lets abolish HTML mail! Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 09/18/01 04:56 PM, DrTebi sat at the `puter and typed: > A little help to keep your apache logs clean (it's not perfect, but does at > least save you some of those stupid hacking attempts). Put this into your > httpd.conf file: > > # mircosoft viruses > SetEnvIf Request_URI \.exe$ other=ms-bs > SetEnvIf Request_URI \.dll$ other=ms-bs > > CustomLog /path/to/your/access_log env=!other > > > Any improvements are greatly appreciated. > DrTebi Hmm. I am not seeing this work. I assume the intent was to have the error logs go to another logfile, but it isn't working. I loaned out my Apache book so I can't check what I'm doing wrong. Here is what I did in httpd.conf: SetEnvIf Request_URI \.exe$ other=ms-bs SetEnvIf Request_URI \.dll$ other=ms-bs CustomLog /WWW/log/ms_virii_log env=!other This was done in the general config area, and the virtual host area, but this is what shows up: In /WWW/log/ms_virii_log: env=!other And in /var/log/httpsd/error_log: [Wed Sep 19 00:34:27 2001] [error] [client 65.96.30.122] File does not exist: /WWW/httpd/html/_vti_bin/..%5c../..%5c../..%5c../winnt/system32/cmd.exe I assume I am just tired and missed something obvious. If you get a chance, let me know? Thanks Lou -- Louis LeBlanc leblanc@acadia.ne.mediaone.net Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://acadia.ne.mediaone.net ԿԬ Cynic, n.: One who looks through rose-colored glasses with a jaundiced eye. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message