[Twisted-web] Re: [Twisted-Python] Twisted to proxy php out to
dreid at dreid.org
Tue May 23 16:19:59 CDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
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
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.
"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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v184.108.40.206 (Darwin)
-----END PGP SIGNATURE-----
More information about the Twisted-web