1
from twisted.web import vhost, static, script
3
default = static.Data('text/html', '')
4
default.putChild('vhost', vhost.VHostMonsterResource())
5
resource = vhost.NameVirtualHost()
6
resource.default = default
7
file = static.File('static')
8
file.processors = {'.rpy': script.ResourceScript}
9
resource.addHost('twistedmatrix.com', file)