【发布时间】:2021-08-03 05:08:56
【问题描述】:
我一直在尝试使用 IIS 部署 django 应用程序,但在执行完所有步骤后,我遇到了错误
<handler> scriptProcessor could not be found in <fastCGI> application configuration
我知道这个错误是由于 scriptprocessor 值的路径不正确,但提到的值是正确的。请看下面的截图
wfastcgi-enable 的屏幕截图
Applied configuration changes to section "system.webServer/fastCgi" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
""c:\program files\python39\python.exe"|"c:\program files\python39\lib\site-packages\wfastcgi.py"" can now be used as a FastCGI script processor
以下是 wwwroot 文件夹中 web.config 文件中设置的值
<handlers>
<add name="Python FastCGI"
path="*"
verb="*"
modules="FastCgiModule"
scriptProcessor="c:\program files\python39\python.exe|c:\program files\python39\lib\site-packages\wfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
有人可以帮助我为什么会遇到这个错误。
【问题讨论】:
-
关于“为 IIS 配置 Python Web 应用”的信息,可以参考这个链接:docs.microsoft.com/en-us/visualstudio/python/…
-
我执行了docs.microsoft.com/en-us/visualstudio/python/… 中提到的确切步骤仍然无法正常工作
标签: django iis wfastcgi iis-handlers