DNS Based Logins

Topics: Customizing Orchard, Writing modules
Jun 26, 2012 at 6:03 PM

We are looking to port an existing legacy classic asp site to Orchard CMS.  Currently, the site has multiple addresses assigned to one ip.  Different organizations log into the site using the same login page i.e. "http://foldername.sitedomain.com/login.asp", where "foldername" is the name of an organization and "sitedomain" is the main site.  Each organization has a folder named for the "foldername" which contains the graphics for its' "branded" site as well as other elements.  The urls to resources throughout the site must be built taking the "foldername" element into account so it can find the correct resources for each corresponding organization.

Is it possible to accomplish this in Orchard via routing or would it need to be done using a custom module?

Coordinator
Jun 26, 2012 at 10:33 PM

http://docs.orchardproject.net/Documentation/Setting-up-a-multi-tenant-Orchard-site

Jun 26, 2012 at 11:28 PM
Edited Jun 26, 2012 at 11:29 PM

Thanks, I was actually looking at this documentation when your reply posted.  I am just getting my feet wet with Orchard and starting to get "sense" of the power of its' exstensibility.  Is it possible under multi-tenancy to share one database and identify data for each organization ("site") via a unique id?  That is how the current classic asp site works.

 

Coordinator
Jun 27, 2012 at 2:18 AM

Depends what you mean by "share one database". If you mean use one database but still maintain strict data isolation between tenants, then yes, we use table prefixes for that. Entirely configurable.