Many primary domains and subdomains using domain access and single DB

Events happening in the community are now at Drupal community events on www.drupal.org.
tusharkanta's picture

I have a requirement of creating many primary domains (for instance, example.com, xyz.com etc) and many subdomains (like uk.example.com, us.example.com, uk.xyz.com, us.xyz.com) etc using a single database. Is it possible using domain access module and table sharing option in drupal 5 ?

Modules should be controlled based on primary domains. For example, I want to disable certain modules for example.com, but those modules might be enabled for xyz.com.

Thanks a lot for helping.

Comments

With Domain Access, all sites

Garrett Albright's picture

With Domain Access, all sites must have the same enabled modules, so that option is out.

But even if you don't use Domain Access, hosting many sites from a single database is still possible by using the table prefixing feature.

Are you sure you need to share any of your tables? I generally recommend against it.

"With Domain Access, all

spicyguy's picture

"With Domain Access, all sites must have the same enabled modules, so that option is out." Could you elaborate this, please?
Does it mean I cannot have different modules for different sites in multisite setup, with DA?

I have setup like this:

example.com
sub1.example.com
sub2.example.com
sub3.example.com

multisite setup with different databases and Shared users tables. Single Sign On (just set cookie_domain as TLD). Working alright!

Can't I use DA here? Will I loose any flexibility of this setup? Actually, does it work if I have different databases?

Very much appreciate your response!

"With Domain Access, all

Garrett Albright's picture

"With Domain Access, all sites must have the same enabled modules, so that option is out." Could you elaborate this, please?
Does it mean I cannot have different modules for different sites in multisite setup, with DA?

Yes, that's what it means. Sorry, I don't know how to elaborate any further…

you can not enable different

rogerpfaff's picture

you can not enable different modules on sub1 and sub2. All Modules are activated on every domain. But as long as you want a content sharing site infrastructure it's a necessarity i think.


Remember: I compute you!

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: