[Twisted-web] NameVirtualHost and web2

Jeff Grimmett grimmtooth at gmail.com
Mon Mar 20 21:12:36 CST 2006


THIS JUST IN

I'm a spaz.

I *did* accurately copy over my web2 version of the script. I don't know how
I managed that, but good catch. I've put things to the way they should be
and am now up and running.

Thanks for pointing out the obvious. Sometimes I need it :)

On 3/20/06, Jeff Grimmett <grimmtooth at gmail.com> wrote:
>
> 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
>



--
"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/963baa6f/attachment.htm


More information about the Twisted-web mailing list