Azure中的FastCgiModule错误500

时间:2015-12-06 22:07:52

标签: perl azure fastcgi

我正在尝试在Azure中运行Perl Fast CGI进程。我已经构建了一个hello world测试页面(test.pl),如果我从它运行的命令中运行它

d:\home\site\wwwroot\bin\perl\bin\perl.exe -MFCGI::IIS=do test.pl

我有* .pl的处理程序运行d:\ home \ site \ wwwroot \ bin \ perl \ bin \ perl.exe(Strawbery Perl),参数-MFCGI :: IIS = do(即相同的以上)。

我收到500错误。当我查看详细日志时,我得到的唯一信息是FastCgiModule错误代码0x8007000d。

我的文件从命令行运行,但它不会在Web应用程序中运行。为什么不呢?

1 个答案:

答案 0 :(得分:1)

问题很简单。我的perl hello world来自命令行,但是对于一个网页,它显然需要设置内容类型。我错过了第一行!

print "Content-type: text/html", "\n\n";
print "Hello World.\n";
相关问题