Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 37162 invoked from network); 28 Jan 2008 15:45:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jan 2008 15:45:57 -0000 Received: (qmail 79617 invoked by uid 500); 28 Jan 2008 15:45:37 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 79594 invoked by uid 500); 28 Jan 2008 15:45:37 -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 79582 invoked by uid 99); 28 Jan 2008 15:45:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2008 07:45:37 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.229.52.226] (HELO grimnir.webthing.com) (80.229.52.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2008 15:45:08 +0000 Received: from grimnir.webthing.com (localhost [127.0.0.1]) by grimnir.webthing.com (Postfix) with ESMTP id 752932136 for ; Mon, 28 Jan 2008 15:45:11 +0000 (GMT) Date: Mon, 28 Jan 2008 15:45:11 +0000 From: Nick Kew To: users@httpd.apache.org Message-ID: <20080128154511.3df9b221@grimnir> In-Reply-To: <479DF2EC.8090507@cnm.de> References: <479DF2EC.8090507@cnm.de> Organization: WebThing X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] test.html.php shown as html not as php On Mon, 28 Jan 2008 16:21:16 +0100 Marten Lehmann wrote: > Hello, > > using apache 2.2.4 we have these lines in our httpd.conf (among > others of course): > > AddType application/x-httpd-php .php That's wrong. PHP is a handler, not a MIME type. That ugly hack was required by Apache 1.0, but has been a nasty bogosity since Apache 1.1 in 1996. > AddHandler server-parsed .html And that's been wrong since Apache 2.0 in 2002, when SSI ceased to be a content generator and became a filter. The legacy support for SSI handlers precludes using dynamic contents with SSI. > HTTP/1.1 200 OK > Date: Mon, 28 Jan 2008 15:07:32 GMT > Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.7a > Accept-Ranges: bytes > Content-Length: 31 > Connection: close > Content-Type: application/x-httpd-php That's exactly what you told it: - the handler is "server-parsed", so php rightly doesn't touch it. - the content-type is what you set. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/ --------------------------------------------------------------------- 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