Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 81812 invoked from network); 11 Dec 2006 15:45:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2006 15:45:07 -0000 Received: (qmail 62336 invoked by uid 500); 11 Dec 2006 15:45:04 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 62298 invoked by uid 500); 11 Dec 2006 15:45:03 -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 62178 invoked by uid 99); 11 Dec 2006 15:45:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Dec 2006 07:45:02 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [146.109.240.232] (HELO irp0b.swx.com) (146.109.240.232) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Dec 2006 07:44:51 -0800 Received: from unknown (HELO gate0b.unix.swx.ch) ([192.168.252.145]) by irp0b.swx.com with ESMTP; 11 Dec 2006 16:44:23 +0100 X-IronPort-AV: i="4.09,521,1157320800"; d="scan'208"; a="5023021:sNHT38162080" Received: from CIWMEXZSA0E.ex.ordersx.org (localhost [127.0.0.1]) by gate0b.unix.swx.ch (8.13.4/8.13.4) with ESMTP id kBBFiNtk017748 for ; Mon, 11 Dec 2006 16:44:23 +0100 (MET) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2663 Date: Mon, 11 Dec 2006 16:44:23 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] apache serves cgi error as application/x-perl Thread-Index: AccdNXc2RfhtnFwQSay+9Awwd1DfBQABXddA From: "Boyle Owen" To: X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] apache serves cgi error as application/x-perl > -----Original Message----- > From: Tony van der Hoff [mailto:lists_0504@vanderhoff.org]=20 > Sent: Monday, December 11, 2006 4:02 PM > To: users@httpd.apache.org > Subject: Re: [users@httpd] apache serves cgi error as=20 > application/x-perl >=20 > *BUMP* >=20 > Has no-one any clue about this, please. I'm beginning to tear=20 > my har out :( >=20 > On 7 Dec at 11:54 Tony van der Hoff=20 > wrote in > message >=20 > > Hi, > >=20 > > Apologies if this has been raised before; I couldn't find=20 > anything similar > > in the faq, nor the last 2 months archives. > >=20 > > I recently upgraded from Apache 2.0 to 2.2. Adjusted the=20 > configuration > > appropriately, and mostly everything works fine. > >=20 > > However, when the server fails to execute a perl cgi script=20 > due to, say, > > bad permissions, or a script error, i.e. "premature end of script > > headers", it appears to generate the correct 500 error=20 > page, but serves it > > as mime type appication/x-perl, instead of text/html. The=20 > previous version > > handled this correctly. > >=20 > > Error-free scripts work fine, so I don't think it's=20 > anything related to > > ExecCGI, or addhandler. > >=20 > > This must obviously be a problem with my configuration, but=20 > having fiddled > > about for a few days, I've not progressed much further. Changing the > > mime.types file for .pl to text/html is effective, but it=20 > doesnt feel like > > the correct solution to the problem. I rather think it might be... If the program works, the program itself sets the mime-type. If it fails, the server returns a plain HTML file and so has to decide for itself the mime-type. You must have set it to application/x-perl somewhere. Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored.=20 > >=20 > > Has anyone any hints, please? > >=20 >=20 >=20 > --=20 > Tony van der Hoff | mailto:tony@vanderhoff.org > Buckinghamshire, England >=20 > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP=20 > 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 > =20 =20 This message is for the named person's use only. It may contain = confidential, proprietary or legally privileged information. No = confidentiality or privilege is waived or lost by any mistransmission. = If you receive this message in error, please notify the sender urgently = and then immediately delete the message and any copies of it from your = system. Please also immediately destroy any hardcopies of the message. = You must not, directly or indirectly, use, disclose, distribute, print, = or copy any part of this message if you are not the intended recipient. = The sender's company reserves the right to monitor all e-mail = communications through their networks. Any views expressed in this = message are those of the individual sender, except where the message = states otherwise and the sender is authorised to state them to be the = views of the sender's company. --------------------------------------------------------------------- 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