FastCGI程序出现Apache错误:Premature end of script headers C/C++/C#/C++Builder PHP/Apache/Nginx 2024 年 11 月 14 日2024 年 11 月 14 日admin cgi中,printf(“Content-type:text/html\r\nFastCGI echo”); 造成此错误。 原因:不小心写错。应该两个\n\n。 改为:printf(“Content-type:text/html\n\nFastCGI echo”);