Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Domain

Security covered Under active development 12,181 sites

Part of the Domain ecosystem · 53 projects

This project allows you to run multiple affiliated websites from a single Drupal installation and database, sharing users, content, and configurations. It supports distinct domain names, subdomains, and even custom ports for each site. The latest versions also introduce experimental support for distinguishing sites using path prefixes within a single domain.

The Domain project is a suite of modules for running a group of affiliated sites from one Drupal installation and a single shared database.

Overview

Domain lets you share users, content and configuration across a group of sites such as:

  • example.com
  • my.example.com
  • thisexample.com (any domain string works)
  • example.com:3000 (non-standard ports are treated as unique)
  • example.com/section/ (path prefix, 3.x and later)

By default, these sites share all tables in your Drupal installation. Each domain can then have its own content visibility, configuration overrides, theme and more.

Which version should I use?

Branch Drupal Status 4.x ^11.4 || ^12 Alpha, Drupal 12 support 3.1 (3.x branch) ^10.2 || ^11 Beta 3.0.x ^10.2 || ^11 Stable, recommended for production 2.0.x ^10.2 || ^11 Stable, feature complete, bug fixes only

New sites should start on 3.0.x, or on 4.x to prepare for Drupal 12.

Key features

Configuration overrides with Config Collections

Since 3.x, per-domain configuration overrides are stored in Drupal core's Config Collections system instead of a custom override system. This keeps Domain aligned with core's configuration management: overrides are exported, imported and deployed like any other configuration.

Path prefixes (experimental)

Since 3.x, several domains can share a single hostname and be told apart by the first segment of the URL path:

  • example.com/corporate/: a corporate division
  • example.com/retail/: a retail division
  • example.com/fr/: a French-language variant

This helps sites that cannot add new hostnames because of corporate firewalls, shared hosting or single-origin CDN constraints, or that simply prefer to keep affiliated sites under one domain.

Content access per domain

The Domain Access module uses Drupal's Node Access system to decide what content is available on each site in the network. Unlike other multi-domain solutions, it grants access based on the domain the user is currently viewing, not on a group or site the user belongs to.

Installation

Install with Composer, for example for the stable 3.0 line:

composer require 'drupal/domain:^3.0'

No core changes are required, but some settings must be edited in services.yml. See the README and the documentation for details.

Domain uses some advanced Drupal concepts and requires that you understand and control your site's DNS configuration.

Companion modules

Documentation

Credits

Thanks to everyone who has contributed code, reviews, tests, translations and support over the years.

History

Domain was created by Gurpartap Singh in November 2006. Original development was sponsored by Morris DigitalWorks with an assist from DZone.

Articles and talks from the Drupal 6 and 7 era:

Ask your assistant about Domain

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Activity

Tracked releases
56
Tracked since
Feb 2023
Latest release
1 month ago
Releases (12 mo)
32 ▲ from 20
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
3.0.0-beta7 Pre-release 10–11 Mar 4, 2026
2.0.0 Stable 10–11 Mar 4, 2026
3.0.0-beta6 Pre-release 10–11 Feb 25, 2026
3.0.0-beta5 Pre-release 10–11 Feb 25, 2026
3.0.0-beta4 Pre-release 10–11 Feb 24, 2026
3.0.0-beta3 Pre-release 10–11 Feb 20, 2026
5.x-1.x-dev Dev Feb 4, 2026
2.0.0-rc2 Pre-release 10–11 Feb 4, 2026
3.0.0-beta2 Pre-release 10–11 Feb 4, 2026
3.0.0-beta1 Pre-release 10–11 Jan 6, 2026