Webpy is a tiny web framework. I use it a lot for my web-services applications.
In general, I let my web server (lighttpd) to handle virtual hosting. But as you may know, I am working on a CDN solution on top of Google App Engine, named CirruxCache. In that case, while I have absolutely no control on the server configuration, I need to handle virtual hosting from the code.
Webpy maps urls by iterating through a tuple. So my solution is quite simple: wrapping the tuple to override the __iter__ function according to an environment variable (HTTP_HOST).
Read more...
Adding virtual host support to webpy
They posted on the same topic
Trackback URL : http://blog.zoomodev.com/trackback/31