1 # Copyright (c) Twisted Matrix Laboratories.
2 # See LICENSE for details.
5 This example demonstrates how to run a reverse proxy.
8 $ python reverse-proxy.py
10 Then visit http://localhost:8080/ in your web browser.
13 from twisted.internet import reactor
14 from twisted.web import proxy, server
16 site = server.Site(proxy.ReverseProxyResource('www.yahoo.com', 80, ''))
17 reactor.listenTCP(8080, site)