Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 4231 invoked from network); 22 Aug 2010 16:31:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Aug 2010 16:31:15 -0000 Received: (qmail 72898 invoked by uid 500); 22 Aug 2010 16:31:13 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 72754 invoked by uid 500); 22 Aug 2010 16:31:12 -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 72746 invoked by uid 99); 22 Aug 2010 16:31:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Aug 2010 16:31:12 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of waynedensmore@gmail.com designates 209.85.212.173 as permitted sender) Received: from [209.85.212.173] (HELO mail-px0-f173.google.com) (209.85.212.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Aug 2010 16:31:06 +0000 Received: by pxi12 with SMTP id 12so2701100pxi.18 for ; Sun, 22 Aug 2010 09:30:45 -0700 (PDT) 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:content-type :content-transfer-encoding; bh=asXR6zy3vFeX4t17YBgc763Mcp1nLMwzqaTbK5N1v4o=; b=oIRcrKEN5u6QnPHH0qhgEh7i+SmO1bhhiS+EF4U03SESzO8KZ9+ia1JtCTD8CTUb16 QkB4qJF8Ea7+0fx+Aoq9sPLr2r8IbDS3YSJ9MfBZWREpCpkyMNxtYfY7t3WMDYpn8BFV doihxEuUq3ijkCAlm7UOD9wZpsVaxq9Abx3Ms= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=oRA9ibZxfKlz1GRNprsLge9yqBsLHFObD6hnmv2nZrNjhcAhQXd7OnQqzn+zoXU4kY 1BlcxSmXSPZyyi5P51cIcBxIL2MRS5CffFeTlH4vBTgFxPbYeuXfBwtKPGOkMvpEzoZG VFQ9Prx6CVO4l/QIANb13x1Snw+zH+q/ZcEmY= Received: by 10.143.14.11 with SMTP id r11mr3401758wfi.45.1282494645594; Sun, 22 Aug 2010 09:30:45 -0700 (PDT) Received: from [127.0.0.1] (c-67-177-201-179.hsd1.co.comcast.net [67.177.201.179]) by mx.google.com with ESMTPS id v13sm7093506wfv.5.2010.08.22.09.30.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 22 Aug 2010 09:30:44 -0700 (PDT) Message-ID: <4C7150B1.9030805@gmail.com> Date: Sun, 22 Aug 2010 10:30:41 -0600 From: Wayne Densmore User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) 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_autoindex troubles It seems that mod_autoindex's directory listing and the custom header and footer files are separate streams that are not sequenced/handled correctly in all circumstances. Here are details of 2 failure modes. Apache version: Apache/2.2.11 Using dreamhost for hosting. PHP as a mod no longer available, using php as a cgi. .htaccess includes: > AddHandler php5-cgi .html > AddType text/html .html > HeaderName test_doc_header.html The test header is a simple header with a H1 header, almost like the default. Accessing a directory with no index.html caused the server to serve up the custom header correctly and some garbage for the file listing. Disabling mod_deflate (done by the admin, on my domain) fixed it so that both came out right. It appeared the header was compressed and the file listing was not, so decompressing gave garbage. Failure mode 2: same setup, but with mod_deflate disabled. Added a ReadmeName with a test footer. The sequence of display in the browser now was header, footer, file listing. Sample is at www.cmcboulder.org/doc2_test/ . I did confirm that the header and footer were php processed by adding some simple php code to them. This seems like an apache bug to me, but wanted to pass it by this group first. Any thoughts? To me it seems that the output of the mod_autoindex directory listing and the header/footer stuff is some a separate stream and being buffered to the end. When php as a cgi is used on the header/footer that is. This entire setup has worked for years before the hosting forced us off of php as a mod and to a newer apache version. --------------------------------------------------------------------- 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