【发布时间】:2010-09-23 16:45:41
【问题描述】:
我需要运行一个简单的请求/响应 python 模块 带有 windows/apache/FastCGI 的现有系统。
我尝试过的所有用于 python 的 FastCGI 包装器仅适用于 Linux (他们使用 socket.fromfd() 和其他类似的东西)。
有没有在windows下运行的包装器?
【问题讨论】:
标签: python windows apache fastcgi
我需要运行一个简单的请求/响应 python 模块 带有 windows/apache/FastCGI 的现有系统。
我尝试过的所有用于 python 的 FastCGI 包装器仅适用于 Linux (他们使用 socket.fromfd() 和其他类似的东西)。
有没有在windows下运行的包装器?
【问题讨论】:
标签: python windows apache fastcgi
Django bug 建议 python-fastcgi 可以为您工作,并且其 PyPI 页面报告它可以在 Windows 上工作。
【讨论】:
我建议mod_python 或mod_wsgi。
【讨论】:
您可能会发现完全放弃 FastCGI 并在 localhost 端口上运行 python 网络服务器更容易。然后只需使用 mod_rewrite 将 apache url 映射到内部网络服务器。
(我开始在我的托管公司提供 FastCGI,令我惊讶的是,几乎每个人都放弃了它,转而只在我提供的端口上运行自己的 Web 服务器。)
【讨论】: