The Domain Access project is a suite of Drupal modules that you can use to run a group of affiliated websites from one Drupal installation and a single shared database. The Domain Access module allows you to share users, content, and configurations across a group of websites.
For documentation on the Domain Access module and general use with Drupal websites, see Domain Access documentation on drupal.org.
If you want to use the Domain Access module with Acquia Dev Desktop, you need to add a ServerAlias
entry in the Acquia Dev Desktop Apache vhosts.conf
configuration file. To add this entry, do the following:
- Using Acquia Dev Desktop, install the website that you want to make part of your Domain Access installation.
- Install and enable the Domain Access module in your Drupal website.
- Configure the Domain Access module with the domain names of each of the websites. For more information, see the Domain Access configuration documentation.
- Add the Domain Access URLs to your hosts file. The domains should use the same IP address as the parent website (usually 127.0.0.1). For example:
127.0.0.1 sleepy.local127.0.0.1 grumpy.local127.0.0.1 dopey.local127.0.0.1 doc.local
- Edit the Acquia Dev Desktop Apache
vhosts.conf
configuration file. This file is located at/Applications/Dev Desktop/apache/conf/vhosts.conf
. - In the first
<virtualhost></virtualhost>
element of thevhosts.conf
file, add aServerAlias
line with the domain names (separated by spaces) of each of the other websites in your Domain Access installation. For example, if you have four local websites namedsleepy
,grumpy
,dopey
, anddoc
, and the first<virtualhost></virtualhost>
element was for thesleepy
website, the beginning of thevhosts.conf
file should look like this:#!!! PLEASE DO NOT EDIT THIS FILE, IT IS AUTOGENERATED BY ACQUIA DEV DESKTOP <virtualhost> ServerName sleepy.local DocumentRoot "/Users/jack.aubrey/Sites/devdesktop/sleepy" ServerAlias grumpy.local dopey.local doc.local </virtualhost>
- Stop and restart the Apache and MySQL servers in Acquia Dev Desktop.
You can now use the Domain Access module with Acquia Dev Desktop.