[prev in list] [next in list] [prev in thread] [next in thread]
List: python-web-sig
Subject: [Web-SIG] On HTTP Servers and WSGI (was "WSGI in standard
From: christian () dowski ! com (Christian Wyglendowski)
Date: 2006-02-07 3:00:53
Message-ID: 43E80D65.8010002 () dowski ! com
[Download RAW message or body]
Ian Bicking wrote:
> It doesn't really need to do that, it's easy to do that in the WSGI
> application itself. For instance:
>
> def dispatch(app_map):
....
> I can understand this is a common desire and it is not obvious that you
> can do this, so it might be useful to include some middleware like this.
> But the server itself does not need to do this. And there's lots of
> ways you might want to do this (e.g., virtual hosts, which do the same
> basic thing but match against environ['HTTP_HOST']).
Ok, gotcha. Thanks for the example code. I had basically written
something like that right in the CP WSGI server. I guess as long as the
SCRIPT_NAME is '', then everything else should be cool.
Christian
http://www.dowski.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic