I'm trying to patch web.py to add support for virtual hosts. In order to serve
static files from /static/<domain>/ I parse the domain name in GET/POST/etc.
calls and save it as web.ctx.domain. However, when the request is shoveled
down to web.httpserver.StaticApp.__iter__(), web.ctx is empty. Since web.ctx
is a thread local storage, I assume it's there. Without reading and
fully understanding
all the web.py source, I'm guessing it's cleared somewhere?
If this is not the right place to store this domain data, where else
should I put it?
Thanks,
Jack