Azure 的 FastCgiModule 错误 500

FastCgiModule error 500 with Azure

我正在尝试 运行 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。

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

问题很简单。我的 perl hello world 从命令行运行,但对于网页来说显然需要设置内容类型。我漏掉了第一行!

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