首页 > 解决方案 > FastCGI 服务如何从 python(root)/site-packages/wfastcgi/wfastcgi.py 位置访问 wfastcgi.py 文件

问题描述

我能够配置 FastCGI 服务,这样每当客户端请求任何调用时,它都只会创建一个进程并服务于所有请求。

此服务仅在 python 根目录中存在 wfastcgi.py 文件时才有效。

如果我使用 pip install wfastcgi 安装该 python 模块 (wfastcgi),它将转到 python(root)/site-packages/wfastcgi/wfastcgi.py 文件。

如果我在 web.config 文件中指定了上述路径(python(root)/site-packages/wfastcgi/wfastcgi.py),则不会使用它。默认的 IIS/FastCGI 错误是通过说...

500 Internal Server error: <handler> scriptProcessor could not be found in <fastCGI> application configuration

我们想把这个文件放在安装目录本身,意思是在 site-packages 下。

我的问题是我们如何为 FastCGI 服务指定站点包位置(没有文件夹权限错误)。

标签: pythoniiscgifastcgi

解决方案


推荐阅读