RE: apache serves cgi error as application/x-perl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Tony van der Hoff [mailto:lists_0504@xxxxxxxxxxxxxx] 
> Sent: Monday, December 11, 2006 4:02 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re:  apache serves cgi error as 
> application/x-perl
> 
> *BUMP*
> 
> Has no-one any clue about this, please. I'm beginning to tear 
> my har out :(
> 
> On 7 Dec at 11:54 Tony van der Hoff 
> <lists_0504@xxxxxxxxxxxxxx> wrote in
> message <gemini.j9wjqv08pf09s03u8.lists_0504@xxxxxxxxxxxxxx>
> 
> > Hi,
> > 
> > Apologies if this has been raised before; I couldn't find 
> anything similar
> > in the faq, nor the last 2 months archives.
> > 
> > I recently upgraded from Apache 2.0 to 2.2. Adjusted the 
> configuration
> > appropriately, and mostly everything works fine.
> > 
> > However, when the server fails to execute a perl cgi script 
> due to, say,
> > bad permissions, or a script error, i.e. "premature end of script
> > headers", it appears to generate the correct 500 error 
> page, but serves it
> > as mime type appication/x-perl, instead of text/html. The 
> previous version
> > handled this correctly.
> > 
> > Error-free scripts work fine, so I don't think it's 
> anything related to
> > ExecCGI, or addhandler.
> > 
> > This must obviously be a problem with my configuration, but 
> 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 
> 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. 

> > 
> > Has anyone any hints, please?
> > 
> 
> 
> -- 
> Tony van der Hoff        | mailto:tony@xxxxxxxxxxxxxx
> Buckinghamshire, England
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
 
 
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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux