modolabs/Kurogo-Mobile-Web — pull request #65 by adamfranco (2012-10-11 14:21:51+00:00)
Title: Allow setting the ACTIVE_SITE via the environment.

This patch allows Kurogo to serve multiple sites from the same code directory
where the active-site selection is configured by something beyond the limited subpath
structure of MultiSite mode.

One example enabled by this patch is to serve different Kurogo sites for each
VirtualHost on the machine:

ServerName students.example.edu
DocumentRoot /var/www/kurogo/www/

SetEnv ACTIVE_SITE Students

ServerName faculty.example.edu
DocumentRoot /var/www/kurogo/www/

SetEnv ACTIVE_SITE Faculty

This patch does not interfere with normal single-site operation or with MultiSite
mode. See the additions to doc/mw/multisite.rst in this patch for more detailed
configuration instructions.