【发布时间】:2020-12-04 22:45:37
【问题描述】:
我使用的是 python 3.8 版和 IIS 7.0。当我尝试在 IIS 服务器上托管我的 python web api 时,它遇到了 FastCGI 错误。我在 IIS 中启用了 CGI,并在我的 web 配置中添加了 System.WebServer>>handlers>>Python FastCGI,但它仍然给出了同样的错误。我也检查了wfastcgi和flask也成功添加了。
【问题讨论】:
-
wfastcgi 无法维护,stackoverflow.com/tags/wfastcgi/info
-
@Lex 您可以建议在 IIS 上托管 python Web API 的其他替代方案。
-
HttpPlatformHandler 或简单的 ARR。
-
我们正在使用 HttpPlatformHandler。
-
不,你没有。 HttpPlatformHandler 不使用 FastCGI,不会给您任何 FastCGI 错误。
标签: python iis-7 fastcgi wfastcgi