Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 47916 invoked from network); 25 Feb 2004 15:44:00 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 25 Feb 2004 15:44:00 -0000 Received: (qmail 14220 invoked by uid 500); 25 Feb 2004 15:43:40 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 14202 invoked by uid 500); 25 Feb 2004 15:43:40 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 14186 invoked from network); 25 Feb 2004 15:43:40 -0000 Received: from unknown (HELO mail36.messagelabs.com) (193.109.254.211) by daedalus.apache.org with SMTP; 25 Feb 2004 15:43:40 -0000 X-VirusChecked: Checked X-Env-Sender: rob@saunders.yourideal.co.uk X-Msg-Ref: server-21.tower-36.messagelabs.com!1077723820!4165794 X-StarScan-Version: 5.2.5; banners=.,-,- X-Originating-IP: [158.234.9.163] Received: (qmail 5172 invoked from network); 25 Feb 2004 15:43:41 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-21.tower-36.messagelabs.com with SMTP; 25 Feb 2004 15:43:41 -0000 Received: from saunders.yourideal.co.uk ([158.234.77.148]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id i1PFheCk013183; Wed, 25 Feb 2004 15:43:40 GMT Message-ID: <403CC31A.6080502@saunders.yourideal.co.uk> Date: Wed, 25 Feb 2004 15:45:30 +0000 From: Rob Saunders User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en, en-us MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: [users@httpd] Apache2 and file extensions X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I'm trying to configure my Apache2 server to run Mason on all files with a .mhtml extension but use the default handler for all other files. I'm also trying to use the DirectoryIndex directive to specify index.mhtml and index.html as files to look for in that order. When I request the index.mhtml explicitly, I get errors as described below. The index.html file loads okay. Has anyone experienced Mason and Ap2? In my perl.conf file, I've got the following configuration: DirectoryIndex index.mhtml index.html SetHandler perl-script PerlResponseHandler HTML::Mason::ApacheHandler2 The .html files are loaded and reproduced correctly, but I can't seem to get the .mhtml files to be processed. The required Mason modules are loaded but all I get in the error log is the following: "[warn] Request, /index.mhtml, is of type, - skipping" which seems to imply that Apache doesn't know what the .mhtml is, or, if I include the line: AddType perl-script .mhtml to my perl.conf file and restart, I get: "[warn] Request, /index.mhtml, is of type, perl-script - skipping" I realise that this is probably a simple mis-configuration, but whatever type I configure .mhtml as, it never gets parsed correctly and I get a warning in the format above (or badly formatted header because of the mason syntax that's included in the index.mhtml file). Any ideas? TIA Rob ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ --------------------------------------------------------------------- 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