Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 53433 invoked from network); 22 Jul 2010 23:45:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Jul 2010 23:45:49 -0000 Received: (qmail 55715 invoked by uid 500); 22 Jul 2010 23:45:46 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 55660 invoked by uid 500); 22 Jul 2010 23:45:46 -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 55652 invoked by uid 99); 22 Jul 2010 23:45:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 23:45:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of apache@antibozo.net designates 74.96.207.37 as permitted sender) Received: from [74.96.207.37] (HELO secure.antibozo.net) (74.96.207.37) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 23:45:37 +0000 Received: from [10.90.235.61] (alcatraz.nodc.noaa.gov [140.90.235.254]) by secure.antibozo.net (Postfix) with ESMTP id D3784E2B47; Thu, 22 Jul 2010 23:45:16 +0000 (UTC) Message-ID: <4C48D80C.50500@antibozo.net> Date: Thu, 22 Jul 2010 23:45:16 +0000 From: Jefferson Ogata User-Agent: Mozilla/4.0 (compatible;MSIE 5.5; Windows 98) MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [users@httpd] mod_filter and CGIs Greetings. I am trying to apply INCLUDES processing selectively to CGIs depending on output content type, to no avail. Wondering if anyone else has run into this. Server is fully patched RHEL 5 x86_64 with Red Hat-provided httpd-2.2.3-43.el5. Server DefaultType is text/plain. My cgi-bin directory is defined using ScriptAlias. In a Directory block for that location, I have: Options +IncludesNOEXEC FilterDeclare SSI FilterProvider SSI INCLUDES resp=Content-Type $text/html FilterChain SSI XBitHack off With this configuration I would expect that INCLUDES would be applied to all CGI output with a Content-Type of text/html. But instead, it applies to all CGI output regardless of Content-Type. It doesn't matter what I put in the FilterProvider line; INCLUDES processing always happens. This is potentially bad since I have some CGIs that produce tar files and other binary data that could potentially contain an SSI directive. I also tried using the deprecated AddOutputFilterByType, but that didn't work either; with text/html as the selected type, it still applied to text/plain output, although it didn't apply to image/png. Thanks in advance... --------------------------------------------------------------------- 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