edx/edx-platform — pull request #1156 by chrisndodge (2013-09-27 16:19:49+00:00)
Title: add some middleware to determine whether draft modulestore or non-draft ...

...modulestore should be used

change to use regex to do the domain mappings. Also add config to AWS to be able to set from configuration file.

handle cases where HTTP_HOST is none, like in unit tests