in reply to Apache2::Const::CONN_CLOSE & Apache 2.2

On my box, that also happens with a plain cgi script that fails to compile: firefox downloads it. I'm digging into that...

(...)

Hm. The downloaded "script" just contains the the ErrorDocument (500 Internal Server Error). It is not displayed because it's Content-type reads application/x-perl. I guess it's a bug (or a config issue?) in apache - it serves an error page with the wrong header. It should set Content-type: text/html when serving an error document.

What is the content in your case?

<update>

Well, just in case... seems to be a mod_mime issue. It seems that even for error documents served instead of failed cgi output, the mime type is set according to the cgi file extension (brr!). This might help:

</update>

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}