bryanlloydharris
asked on
malformed header when serving .exe files
Hi,
I am trying to get apache to serve .exe files by executing them as CGI scripts. My program seems fine, but I receive internal server error when viewing the page in a browser:
http://localhost/index.exe
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Here is from the log file:
[Thu Jun 01 08:24:03 2006] [error] [client 127.0.0.1] malformed header from script. Bad header=<!DOCTYPE HTML PUBLIC "-//W3C/: index.exe
If I run my program from command window, it looks like this(this is just the first few lines):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
How do I configure apache to serve the header information correctly? I suppose I could try and just put it directly into my program but is there another way?
I am trying to get apache to serve .exe files by executing them as CGI scripts. My program seems fine, but I receive internal server error when viewing the page in a browser:
http://localhost/index.exe
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Here is from the log file:
[Thu Jun 01 08:24:03 2006] [error] [client 127.0.0.1] malformed header from script. Bad header=<!DOCTYPE HTML PUBLIC "-//W3C/: index.exe
If I run my program from command window, it looks like this(this is just the first few lines):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
How do I configure apache to serve the header information correctly? I suppose I could try and just put it directly into my program but is there another way?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER