Apache - Incorrect mime type for 500 internal server error

2006-05-24 Thread Ian Batterbee
I'm seeing a very strange problem with cgi scripts after migrating to 
new hardware and from apache 1.3.x to 2.2.2


While 404, 403 etc errors are fine, '500 Internal server error' errors 
are now sent as text/plain instead of as text/html.


This means that instead of a nicely formatted error saying '500 Internal 
server error' whenever a cgi script dies or fails to produce a valid 
http header, the end-user sees all the HTML markup wrapped around that 
message instead.


It doesn't seem to be perl related, as I can recreate the same thing 
with the following one line bash script (which clearly fails to send 
headers)


#!/bin/bash

A packet trace shows that the mime type is being set to text/plain in 
the document header, followed by the 500/Internal server error message







--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Re: 500 Internal Server Error

2001-08-02 Thread Ryan Davis

There actually is a setting to use the shebang line with Apache for Win32
and activestate.  There's not much point to it, but since I test CGIs at
home, and my server is unix, it lessens the transition.  Of course, half the
things I do can't run on Windows, but it works for the basics. (some of
them)

Ryan


> I don't work on *nix type systems much, but I assume that you are using
Apache and need a shebang
> line to tell the Web server how to execute the script.  Something like
this:
>
> #!/usr/bin/perl -wT
>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: 500 Internal Server Error

2001-06-27 Thread Mark Bergeron

I really might help if you share a little code with the group. Just paste some into 
your email.

Mark Bergeron

-Original Message-
From: "Paul Burkett"<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Mon Jun 25 12:59:08 PDT 2001
Subject: 500 Internal Server Error

>Everything I try I get the same error! I've tried using 'use CGI' but still
>nothing. I found a command that works it's called "HTTP Command 204" but how
>do I implement this into the script? And where do I put the "Content:" line
>in?
>

/~_. _ | _ _  _  _ 
\_/|(_||| | |(_)| |
 _|
___
GO.com Mail
Get Your Free, Private E-mail at http://mail.go.com





500 Internal Server Error

2001-06-26 Thread Paul Burkett

Everything I try I get the same error! I've tried using 'use CGI' but still
nothing. I found a command that works it's called "HTTP Command 204" but how
do I implement this into the script? And where do I put the "Content:" line
in?