"其他IIS网站出错,由于在IIS中托管Python Web应用后"

2024-04-28 04:27:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经在IIS服务器上使用Flask和fastcgi部署了PythonWebService

https://medium.com/@bilalbayasut/deploying-python-web-app-flask-in-windows-server-iis-using-fastcgi-6c1873ae0ad8

它在8080端口enter image description here上运行良好

但其他现有的IIS应用程序在出现以下错误时停止运行

enter image description here

所以请帮我解决这个问题

注意:我是Python新手


Tags: httpsimage服务器comwebflaskhere部署
1条回答
网友
1楼 · 发布于 2024-04-28 04:27:44

首先,删除设置如下的fast CGI环境变量:

enter image description here

现在选择您的站点,然后双击应用程序设置

单击操作窗格中的添加

enter image description here

设置PYTHONPATH变量(即站点文件夹路径):

enter image description here

以及WSGI\u处理程序(我的Flask app名为app.py,因此值为app.app-如果你的名为site.py,则为site.app或类似值):

enter image description here

单击“确定”并浏览到您的站点

相关问题 更多 >