Internal link shows port behind the server by ReverseProxyResource.
30 Nov
2008
30 Nov
'08
2:02 p.m.
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()
5821
Age (days ago)
5821
Last active (days ago)
0 comments
1 participants
participants (1)
-
Taito Horiuchi