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

Commits on Oct 11, 2012

  1. 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:
    
    	<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.
    adamfranco committed Oct 11, 2012
    Configuration menu
    Copy the full SHA
    196d8be View commit details
    Browse the repository at this point in the history