For each additional (sub)domain you would like to serve out of your existing Drupal install you'll need to set up a new (sub)domain record on Domains->Manage Domains -> Add new domain/sub-domain. Unlike the primary domain this will be set up as mirrored. You'll find setup for site mirroring half way down the page.
Note: mirroring will create a domain folder in the filesystem - leave this empty. The only place where your Drupal related files go is the folder of the default domain (e.g the fully hosted domain).
A real live sample of Domain Access
I am running 4 domains off of a single Drupal install using Domain Access on this site. My default domain is theoriginalnetbaby.com and I also have 3 additional domains:
theoriginalnetbaby.com gets served out of /theoriginalnetbaby.com folder in my server root, domain access is located in /theoriginalnetbaby.com/sites/all/modules/domain and the only existing settings.php file is in /theoriginalnetbaby.com/sites/default/settings.php
Even though installing Domain Access allows to manage content on multiple domains it does not require multiple site folders and settings.php files. There is only one central settings.php file for the default domain. For Domain Access to work, you must add some code to your settings.php file. This code will load the Domain Access bootstrap routines that determine how your site is being requested.
Installing Domain Access on Dreamhost
If you already have a pre-existing Drupal install skip to setting up additional (sub)domains. To create a new Drupal install you'll need to create a new fully hosted site on Domains->Manage Domains click on "Add new domain/sub-domain". Fill out all domain fields as you would for any other site.
Setting up additional (sub)domains
For each additional (sub)domain you would like to serve out of your existing Drupal install you'll need to set up a new (sub)domain record on Domains->Manage Domains -> Add new domain/sub-domain. Unlike the primary domain this will be set up as mirrored. You'll find setup for site mirroring half way down the page.
Note: mirroring will create a domain folder in the filesystem - leave this empty. The only place where your Drupal related files go is the folder of the default domain (e.g the fully hosted domain).
A real live sample of Domain Access
I am running 4 domains off of a single Drupal install using Domain Access on this site. My default domain is theoriginalnetbaby.com and I also have 3 additional domains:
theoriginalnetbaby.com gets served out of /theoriginalnetbaby.com folder in my server root, domain access is located in /theoriginalnetbaby.com/sites/all/modules/domain and the only existing settings.php file is in /theoriginalnetbaby.com/sites/default/settings.php
For each additional (sub)domain you would like to serve out of your existing Drupal install you'll need to set up a new (sub)domain record on Domains->Manage Domains -> Add new domain/sub-domain. Unlike the primary domain this will be set up as mirrored. You'll find setup for site mirroring half way down the page.
Note: mirroring will create a domain folder in the filesystem - leave this empty. The only place where your Drupal related files go is the folder of the default domain (e.g the fully hosted domain).
A real live sample of Domain Access
I am running 4 domains off of a single Drupal install using Domain Access on this site. My default domain is theoriginalnetbaby.com and I also have 3 additional domains:
theoriginalnetbaby.com gets served out of /theoriginalnetbaby.com folder in my server root, domain access is located in /theoriginalnetbaby.com/sites/all/modules/domain and the only existing settings.php file is in /theoriginalnetbaby.com/sites/default/settings.php
Great post, was just searching "domain access drupal dreamhost" and here you were with exactly what I was looking for!! :)
Thanks!!
Leave a Response