Hi, I'm new to Twisted, but would like to try to use it as a web front server. I try to use ReverseProxyResource to provide internal server with port 20001 to port 80. The code below successfully provides the content of http://localhost:20001/as http://localhost/, but the internal link within the page shows port 20001. How can I fix this?
Taito The code: from twisted.internet import reactor from twisted.web import server, proxy, vhost PORT = 20001 HostName = 'localhost' reverseProxy = proxy.ReverseProxyResource(HostName, PORT, '') root = vhost.NameVirtualHost() root.addHost(HostName, reverseProxy) site = server.Site(root) reactor.listenTCP(80, site) reactor.run()
_______________________________________________ Twisted-web mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
