Setting up your multi-site install to handle wildcard subdomain

litwol's picture
public
litwol - Mon, 2008-10-13 22:55

I've finally had some time this weekend to play around with the server that i got from hostmysite.com. All mandatory plugging aside, given my limited needs list i am quite satisfied with the service so far, more on my experience with the representatives later.

For no better reason than just having a spare domain, i configured www.sheino.com to resolve against the server regardless of which subdomain you try it with. Really, try [ANYTHING].sheino.com and it will bring you to the same page. i find it highly interesting and i take much personal satisfaction from this simple fact because i do not come from a background that ever taught me how domains work.

My next goal is to setup an automated process to create a multi-site instance for [anything].nycdrupal.org when [anything] is requested. And then allow the user to login and administer their site. I will pre-load the site with essential modules and many other modules that I find to be safe for this experiment.

This little project is unlike http://www.opensourcecms.com/ because with my project users will be getting their own sandbox and there will be no resource sharing and database wipe. My goal is to provide an archive of the install (files + database) of the multi-site instance to the user to download. After a few days the user will comfortable with the system by playing with it on [anything].nycdrupal.org, that is when the system will archive itself and offer a downloadable file for the user to install on their own local dev or prod server.

I will provide periodical updates on the progress of the project. For now i am taking baby steps to ensure continued progress and to avoid burning out.

Of course if anyone finds this project interesting, there are many responsibilities to fill and a lot of interesting tasks to work on. I keep my hands open for any and all help you guys would be willing to offer. I think our local and the rest of the drupal community can benefit greatly from this project.


Interesting - I see

LifeNets - Tue, 2008-10-14 07:41

Interesting - I see tremendous potential in this beyond just web development. This would allow an innovative organization to decentralize control to local chapters or franchises in a secure, scalable way.

did you take a look to

deegree's picture
deegree - Tue, 2008-10-14 14:20

did you take a look to this?

http://drupal.org/project/domain

I had it configured to install a subdomain automatically per user and so on....


it works really well

gnat@drupal.org's picture
gnat@drupal.org - Tue, 2008-10-14 15:26

Openflows has been using the Domain Access module for a project that we are working on, and we have found it to work really well. Its a bit complex at first, but its quite well thought out, and has a really clean database structure.

Highly recommend it for people trying to have one database power several domains, with distinctions between the names.


Flag for database/ sandbox deletion

gnat@drupal.org's picture
gnat@drupal.org - Tue, 2008-10-14 15:33

While I like the idea of not having a policy where everything gets regularly destroyed, that needs to be balanced with cleaning out the cruft.

I set up sand boxes on my machine all the time, and then promptly forget about them. I end up having a ton of unused databases hanging around, and an enviable collection of half broken Drupal sites. Its not such a big deal with just me on my laptop, but multiplying it by n, we'll get a really huge amount of unused sand box space.

There needs to be a method by which sites that are being used get saved. There also needs to be a way to control the crap to good stuff ratio. I propose some form of "delete me" or "save me" flag, so that people can declare that its okay to wreck their sand castle.


very good ideas. lets crate

litwol's picture
litwol - Tue, 2008-10-14 16:36

very good ideas. lets crate a separate wiki which will be a feature + road map for phase 1, 2, ... n ? feel free to lead the way.