You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Christiaan Ehlers <Ch...@inclarity.co.uk> on 2007/04/18 13:32:13 UTC

[users@httpd] RE: Malformed header

I have solved the problem...

 

The Beltane package has all its php script files with .cgi extentions.
Thus I just added .cgi to the AddHandler for php5...

 

Must say that the error message sent me down the wrong path for a while,
but got there in the end.

 

Sorry for wasting anybodies time...

 

Thanks.

Christiaan

 

-----Original Message-----
From: Christiaan Ehlers 
Sent: 18 April 2007 11:58
To: 'users@httpd.apache.org'
Subject: Malformed header

 

Hi All

 

I have installed Beltane (an web front end to Samhain HIDS).  I am
running httpd version 2.2.3 and php 5.1.6 on a fedora 6 box.  I get the
following error when I try and load the php page auth.cgi:

 

[Wed Apr 18 10:31:00 2007] [error] [client 10.0.0.1] malformed header
from script. Bad header=<!DOCTYPE html PUBLIC "-//W3C/: auth.cgi

[Wed Apr 18 11:49:31 2007] [error] [client 10.0.0.1] malformed header
from script. Bad header=<!DOCTYPE html PUBLIC "-//W3C/: auth.cgi

[Wed Apr 18 11:49:44 2007] [error] [client 10.0.0.1] malformed header
from script. Bad header=<!DOCTYPE html PUBLIC "-//W3C/: auth.cgi

 

I am not sure if this is a php or apache error or even just a script
error.

 

When I run the php I get the following output:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head><title>Login</title>

<link rel="stylesheet" type="text/css" href="style_blue.css" />

<script language="JavaScript" src="js/sel.js"
type="text/javascript"></script><script language="JavaScript"
src="js/changeimg_blue.js"
type="text/javascript"></script><script language="JavaScript"
src="js/md5.js"         type="text/javascript"></script><script
language="JavaScript" src="js/cr.js"
type="text/javascript"></script><script language="JavaScript"
src="js/break.js"         type="text/javascript"></script></head>

<!-- theme: blue -->

<body class="fullscreen" onload="">

<div id="overDiv" style="position:absolute; visibility:hidden;
z-index:1000;"></div>

<div id="fullscreen" class="fullscreen">

<div class="enclosure">

<div class="rowcage">

<div class="spacer"></div>

<div class="row"><span class="left">

&nbsp;Login</span>

<span class="right">

&nbsp;</span>

</div>

<div class="spacer"></div>

</div>

     <p style="text-align:center">

     <img border="0" alt="Beltane" height="66" width="220" 

        src="./pix_blue/logo.png" />

     </p>

     <script language="javascript" type="text/javascript">

     <!--

***TRUNCATED***

 

Any ideas will be much appreciated.  Let me know if you need more
information.

 

Kind Regards

Christiaan Ehlers
Systems Administrator

Inclarity plc * 7th Floor * Olympic Office Centre * 8 Fulton Road *
Wembley * Middlesex * HA9 0NU 
Tel:    +44 (0) 208 634 0445
Mob:   +44 (0) 777 913 7962
Fax:    +44 (0) 208 634 9145 
Email:  christiaan.ehlers@inclarity.co.uk 
Web:   www.inclarity.co.uk <http://www.inclarity.co.uk/>  

 

Disclaimer
======================================================================

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager. Please note that any views or opinions presented
in this email are solely those of the author and do not necessarily
represent those of the company. Finally, the recipient should check
this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus
transmitted by this email.

Inclarity Ltd.
Registered Office: Olympic Office Centre, Fulton Road, Wembley, Middlesex, HA9 0NU
Telephone: + 44 (0)845 698 0800
Fax: + 44 (0)845 698 1000

Registered Company No. 02673204

======================================================================