Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Allow setting the ACTIVE_SITE via the environment.#65

Open
adamfranco wants to merge 1 commit intomodolabs:masterfrom
adamfranco:ACTIVE_SITE_from_environment
Open

Allow setting the ACTIVE_SITE via the environment.#65
adamfranco wants to merge 1 commit intomodolabs:masterfrom
adamfranco:ACTIVE_SITE_from_environment

Conversation

@adamfranco
Copy link
Copy Markdown
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
Copy Markdown
Contributor

akinspe commented Mar 25, 2013

Options similar to this will be part of our next release

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants