[Twisted-web] Re: [Twisted-Python] Twisted to proxy php out to apache?

David Reid dreid at dreid.org
Tue May 23 16:19:59 CDT 2006

Hash: SHA1

Remi Cool wrote:
> Hello fellow twisters,


> We have a rather large web app based on xul, xmlrpc (via twisted) and
> php (via apache) .... and we would like to get it all (in due time) in
> python.

Sounds like a pretty good idea.

> <snip things that suck about php>
> My question ... is it possible to pass php page requests from twisted to
> apache so I don't suffer the speed loss but still have my app listening
> on only one port (for http and xmlrpc) ? So can twisted be a proxy for
> php or is this not the recommended way to go?

This is absolutely possible, the resource you're probably interested in
is twisted.web.proxy.ReverseProxyResource, which acts pretty much like
mod_proxy for Apache.

Also twisted.web/web2 and Nevow questions are best asked on the
twisted-web mailling list.

- -David

- --
"Usually the protocol is this: I appoint someone for a task,
which they are not qualified to do.  Then, they have to fight
a bear if they don't want to do it." -- Glyph Lefkowitz
Version: GnuPG v1.4.2.2 (Darwin)


More information about the Twisted-web mailing list