Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting the ACTIVE_SITE via the environment. #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamfranco
Copy link
Contributor

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:

<VirtualHost *:80>
    ServerName students.example.edu
    DocumentRoot /var/www/kurogo/www/

    SetEnv ACTIVE_SITE Students
</VirtualHost>

<VirtualHost *:80>
    ServerName faculty.example.edu
    DocumentRoot /var/www/kurogo/www/

    SetEnv ACTIVE_SITE Faculty
</VirtualHost>

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.

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:

	<VirtualHost *:80>
		ServerName students.example.edu
		DocumentRoot /var/www/kurogo/www/

		SetEnv ACTIVE_SITE Students
	</VirtualHost>

	<VirtualHost *:80>
		ServerName faculty.example.edu
		DocumentRoot /var/www/kurogo/www/

		SetEnv ACTIVE_SITE Faculty
	</VirtualHost>

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.
@akinspe
Copy link
Contributor

akinspe commented Mar 25, 2013

Options similar to this will be part of our next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants