2009年1月17日星期六

Premature end of script headers

cgi中很容易出现的问题
出错信息:
(8)Exec format error: exec of '/var/www/cgi-bin/style.css' failed, referer: http://localhost/cgi-bin/post.pl
[Sun Jan 18 09:50:54 2009] [error] [client 127.0.0.1] Premature end of script headers: style.css, referer: http://localhost/cgi-bin/post.pl


perlmonk里面的答案

关于我的问题
这里给出了答案,虽然是img的问题,但原因都是一样的。
大体意思是css或者img都不是可执行文件,不能放在script-alias目录里面,把css放到/var/www/html/下面,一切搞定

没有评论: