Paul Oyster
Paul Oyster

Reputation: 2267

Python as FastCGI under windows and apache

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

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

Is there a wrapper that runs under windows?

Upvotes: 6

Views: 3459

Answers (3)

tangentstorm
tangentstorm

Reputation: 7295

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.

(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.)

Upvotes: 2

S.Lott
S.Lott

Reputation: 391818

I'd suggest mod_python or mod_wsgi.

Upvotes: 0

Paul Fisher
Paul Fisher

Reputation: 9666

A Django bug suggests that python-fastcgi will work for you, and its PyPI page reports that it works on Windows.

Upvotes: 1

Related Questions