Package: x2gobroker
Version: 0.0.2.0 and 0.0.2.1 (git master)

I am trying to setup x2gobroker served via WSGI with the new x2gobroker-wsgi package. I have opted to setup a vhost that will serve only clients from my LAN and a different one for outside access. For this, I want to point them to different config-files (session profiles) and have discovered that none of the SetEnv statements in the Apache config files are being honored. According to http://stackoverflow.com/questions/9016504/apache-setenv-not-working-as-expected-with-mod-wsgi SetEnv does not result in variables being available in os.environ, but instead in the WSGI request's variable called environ. I can see that the code currently looks in os.environ, and as such, when running through WSGI, only default values are used. You could either look in both os.environ and the WSGI requests environ, or only look in the WSGI request and have code before that, which adds os.environs variables to the WSGI request.

--
Anders Bruun Olsen
It-ansvarlig
Det Danske Sprog- og Litteraturselskab
(Society for Danish Language and Literature)