Mulitple Oxite Sites In a Single Web

May 12, 2009 at 8:57 PM

Has anyone looked at hosting multiple Oxite sites in a single web application?  Ideally, different host/domain names would all be pointed at the same physical web server with the  hostname specifying which Oxite Site to load: abc.domain.com would load Oxite site named abc, while 123.domain.com would load the site named 123.  Any suggestions in how to accomplish this would be appreciated.

Coordinator
May 12, 2009 at 9:42 PM

Actually, I would probably just change how Areas work.  Areas are usually at urls like http://domain.com/abc and http://domain.com/123.  You could change up routing (and probably something else would need to change too [like a custom MvcRouteHandler would be my guess offhand without looking]) so that the Area would come from whatever was before the domain in the url (http://domain.com/abc becomes http://abc.domain.com).  As long as you can get the right route data to be set (areaName = "abc"), then Oxite won't care and work as it usually does.

May 12, 2009 at 10:01 PM

Thanks Erik, 

I possibly over simplified the entire ojective.  In addition to blogs, each "site" needs to have it's own set of user created pages as well.  I'm thinking I may be able to use the Page parent/child relationships to manage those, with each "site" have a main parent page containing the various child pages.  What are your thoughts on that?

Coordinator
May 12, 2009 at 10:03 PM

Yes, I think that would work fine.

We actually just discussed at lunch that Pages scoped to Area would be useful.  Who knew it would be useful for you?  ;)  "Special" pages for each "site" should work just fine though.