IIS-Flask python脚本网络配置错误wfastcgi
我正在通过IIS使用wfastcgi启用flask python脚本 我已经安装并启用了wfastCGI。但是,在我创建了一个网站并添加了webconfig文件之后-IIS-Flask python脚本网络配置错误wfastcgi,python,flask,iis,wfastcgi,Python,Flask,Iis,Wfastcgi,我正在通过IIS使用wfastcgi启用flask python脚本 我已经安装并启用了wfastCGI。但是,在我创建了一个网站并添加了webconfig文件之后- <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <modules> <remove name="WebD
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<modules>
<remove name="WebDAVModule" />
</modules>
<handlers>
<add name="Python FastCGI" path="*" verb="*" modules="FastCgiModule" scriptProcessor="c:\users\goe\appdata\local\programs\python\python38\python.exe|c:\users\goe\appdata\local\programs\python\python38\lib\site-packages\wfastcgi.py" resourceType="Unspecified" requireAccess="Script" />
</handlers>
<directoryBrowse enabled="true" />
</system.webServer>
<appSettings>
<!-- Required settings -->
<add key="WSGI_HANDLER" value="myapp.app" />
<add key="PYTHONPATH" value="D:\" />
</appSettings>
</configuration>
我需要帮助来修复此问题,如果您没有在root web.config中设置配置,或者没有在IIS中安装某些内容,请执行必要的操作,否则IIS将返回此错误 1.请确保C:\Users\goe\Documents\mywebsite\是web服务器的根web.config。您需要确保在web应用程序的根web.config中设置了handlers部分 2.请确保
<section name="handlers" overrideModeDefault="Allow" />
3.请转到configuration manager system.webServer/handlers,检查节是否已解锁
4.请确保IIS功能已完全安装。您最好切换到其他托管选项。
<section name="handlers" overrideModeDefault="Allow" />