窗户和Apache下Python作为FastCGI的 [英] Python as FastCGI under windows and apache

查看:141
本文介绍了窗户和Apache下Python作为FastCGI的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要运行下一个简单的请求/响应Python模块
现有的系统与Windows /阿帕奇/ FastCGI的。

I need to run a simple request/response python module under an existing system with windows/apache/FastCGI.

所有蟒蛇FastCGI的包装我想工作仅限于Linux
(它们使用socket.fromfd()和其他此类shticks)

All the FastCGI wrappers for python I tried work for Linux only (they use socket.fromfd() and other such shticks).

有没有在Windows下运行的包装?

Is there a wrapper that runs under windows?

推荐答案

您可能会发现更容易完全抛弃的FastCGI,只是运行一个本地主机端口上的蟒蛇网络服务器。然后,只需使用mod_rewrite到Apache URL映射到内部网络服务器。

You might find it easier to ditch FastCGI altogether and just run a python webserver on a localhost port. Then just use mod_rewrite to map the apache urls to the internal webserver.

(我开始在我的托管公司,并让我吃惊的FastCGI提供,几乎每个人都抛弃了它有利于只是运行他们自己的Web服务器上我提供他们的港口。)

(I started offering FastCGI at my hosting company and to my surprise, nearly everyone ditched it in favor of just running their own web server on the ports I provided them.)

这篇关于窗户和Apache下Python作为FastCGI的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆