[Twisted-web] NameVirtualHost and web2
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
"Ladies and gentlemen, there's nothing to worry about ... but please keep
your heads down." - The Muppet Show
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-web