Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 54024 invoked from network); 13 Jul 2009 18:51:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jul 2009 18:51:58 -0000 Received: (qmail 65496 invoked by uid 500); 13 Jul 2009 18:52:07 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 65428 invoked by uid 500); 13 Jul 2009 18:52:07 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 65417 invoked by uid 99); 13 Jul 2009 18:52:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2009 18:52:07 +0000 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 ronald.park@cbs.com designates 216.239.127.165 as permitted sender) Received: from [216.239.127.165] (HELO c12-mail2i.cnet.com) (216.239.127.165) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2009 18:51:58 +0000 X-IronPort-AV: E=Sophos;i="4.40,171,1239001200"; d="scan'208";a="447903493" Received: from c12-esa-netscaler-mip1.cnet.com (HELO [10.17.36.212]) ([216.239.127.178]) by c12-smtp2s.cnet.cnwk with ESMTP; 13 Jul 2009 11:51:37 -0700 Subject: Re: Excluding SSI content from filtering From: Ronald Park To: modules-dev@httpd.apache.org In-Reply-To: <4A5B80D1.4040001@conversis.de> References: <4A5B80D1.4040001@conversis.de> Content-Type: text/plain Organization: CBS Interactive Date: Mon, 13 Jul 2009 14:51:33 -0400 Message-Id: <1247511093.3297.112.camel@lost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I believe you should wrap your header/footer inserter inside an if (!r->main ) { ... } block. So only the 'main' request is wrapped but not any subrequests. Ron On Mon, 2009-07-13 at 20:45 +0200, Dennis J. wrote: > Hi, > I wrote a module that adds a header and a footer to html output and that > works pretty well. The problem ist that once i add a "" directive the content included also gets that > header and footer applied. Is there a way to prevent the header/footer > filter from dealing with such a SSI sub-request so that it only applied to > the final webpage? > > Regards, > Dennis