[Twisted-web] NameVirtualHost and web2

Jeff Grimmett grimmtooth at gmail.com
Mon Mar 20 18:27:55 CST 2006


On 3/20/06, David Reid <dreid at dreid.org> wrote:
>
> Jeff Grimmett wrote:
> > site1 = server.Site(static.File("d:sites\site1"))
> > site2 = server.Site(static.File("d:sites\site2"))
> >
> > root.addHost('www.grimmlabs.com', site1)
> > root.addHost('www.g-labs.com', site2)



I'm fairly sure that addHost never accepted a server.Site, even in
> twisted.web but it most certainly doesn't in web2.


You're right, I mistyped that part.  Therefore ...

simply change the above to
> ==
> root.addHost('www.grimmlabs.com', static.File("d:sites\site1"))
> root.addHost('www.g-labs.com', static.File("d:sites\site2"))
> ==


... was already that way, more or less. Sorry for the confusion.


--
"Ladies and gentlemen, there's nothing to worry about ... but please keep
your heads down." - The Muppet Show

Best,

    Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20060320/f9e18fd3/attachment.htm


More information about the Twisted-web mailing list