Stanford-Online/class2go — pull request #1390 by sefk (2012-11-30 01:52:37+00:00)
Title: Support multiple apps per environment via vhosts (#1371) to master

Goal is so we can have one environment ("prod" or "dev") support two different domains (class vs. class2go) running two different versions of software (fall2012 frozen code vs. winter2012 new code).

**App Servers**: We can use apache vhosts to direct two domains to two different apps. Have to also parameterize static dirs, log files. Log rotation is generic enough that it should just work.

** Util Servers**: celery doesn't have the same notion of vhosts, too bad, so we have to hack this by treating each app as its own service, kind of ugly. Luckily, since celery is pull based, we don't have to worry about port collisions or anything like that. There doesn't seem to be other conflicts once we parameterize log names, database locations, etc.