python cgi script and premature end of script headers
I've been trying to get a python cgi script to work but keep getting a "Premature end of script headers" error from apache. Even with the most simple hello world script, I still get that error.
print "Content-type: text/html\n"
print "<h1>Hello World!</h1>"
That is the script, and it is set to execute. I also have this in my httpd.conf
Allow from all
I also found out that the error might be caused by how windows saves files, but I've been doing this all from linux and using kate. I've even used nano to write it and I still get the error. So I don't think its the end of line problem. I've got other things running on my server that use perl, and those scripts work just fine, so why is it that my python scripts don't want to work? Is it something in my httpd.conf file that is messing me up?
I'm running FC4 x86_64.