<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
David Reid wrote:
<blockquote cite="mid44749306.2040002@dreid.org" type="cite">
  <pre wrap="">-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Remi C Cool wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hello fellow twisters,
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Hello again.

  </pre>
</blockquote>
Thanks again for your time.<br>
<blockquote cite="mid44749306.2040002@dreid.org" type="cite">
  <pre wrap=""></pre>
  <blockquote type="cite">
    <pre wrap="">I know about the reverseproxy stuff .. but if I understand that
correctly, it's about passing requests to twisted from apache or other
server. I would like it to be the other way round .. twisted passes
requests for PHP to apache, receives the processed content and passes
that back to the client. (if that method doesn't have any significant
drawbacks)
    </pre>
  </blockquote>
  <pre wrap=""><!---->
class ReverseProxyResource(resource.Resource):
    """Resource that renders the results gotten from another server

    Put this resource in the tree to cause everything below it to be relayed
    to a different server.
    """

I'm sorry, you don't understand it correctly.  mod_proxy which passes
requests from apache to another server such as twisted is a reverse
proxy, ReverseProxyResource is an implementation of a reverse proxy for
twisted so that it can forward requests to another server.  It takes a
host, a port, and a path and it proxies all requests for that resource
to the server specified by the host, port, and path.

for example, ReverseProxyResource('google.com', 80, '/') will forward
requests to <a class="moz-txt-link-freetext" href="http://google.com:80/">http://google.com:80/</a>.
  </pre>
</blockquote>
Ok, I'm with you with that (I need to read more carefully) ... but what
I would like to do, is pass all requests for files ending with .php
(and maybe .js and .ccs) to be forwarded to another server. Forwarding
everything would make the transition from php to nevow a tad more
difficult.  Would this 'selective' proxying be possible? <br>
<br>
<blockquote cite="mid44749306.2040002@dreid.org" type="cite">
  <pre wrap="">- -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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)

iD8DBQFEdJMGrsrO6aeULcgRAkBzAJ4i0cIMWsxq1THnaYJ6NiRxHGs1XwCeOa61
P/9DktOYxqMHSkEz7/RXMs4=
=ICdm
-----END PGP SIGNATURE-----

  </pre>
</blockquote>
</body>
</html>