急求:如何在linux,boa服务器,怎样配置perl写cgi的环境
最基础的问题,我在linux下面装好了boa,也装好了perl,用c写了个cgi能成功的调用,并输出hello word,可是用perl写了一个hello word的pl,就是调用不了,情况如下:
502 Bad Gateway
The CGI was not CGI/1.1 compliant.
perl源代码如下:
#!/usr/bin/perl
print"Content-type:text/html\n\n ";
print"<HTML>\n";
print"<HEAD>\n";
print"<TITLE>OK!</TITLE>\n";
print"</HEAD>\n";
print"<BODY>\n";
print"<H2>hello!</H2>\n";
print"</BODY>\n";
print"</HTML>\n";
求各位大哥大姐帮忙说下什么原因吧。是不是perl配置有问题啊。